Try to fix regression test 024 failure.
authorTatsuo Ishii <ishii@sraoss.co.jp>
Sat, 29 Sep 2018 13:13:05 +0000 (22:13 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Sat, 29 Sep 2018 13:13:05 +0000 (22:13 +0900)
It seems the valid period of root cert is default to now.
Set it to from now to 1 year after. See if this works.

src/test/regression/tests/024.cert_auth/cert.sh

index 66d3f60a85ebe6bf6f28d49af910731e3a112987..e3634323e2f08366be5a45806745f7bb247e6d74 100755 (executable)
@@ -1,7 +1,7 @@
 #!/usr/bin/env bash
 
 # Create root cert
-openssl req -new -x509 -nodes -out root.crt -keyout root.key -subj /CN=MyRootCA
+openssl req -new -x509 -nodes -out root.crt -keyout root.key -days 365 -subj /CN=MyRootCA
 # PostgreSQL/Pgpool cert
 openssl req -new -out server.req -keyout server.key -nodes -subj "/CN=postgresql"
 openssl x509 -req -in server.req -CAkey root.key -CA root.crt -days 365 -CAcreateserial -out server.crt