From be419e25b4796bbb8fc97a012265442fffa163cf Mon Sep 17 00:00:00 2001 From: Jack Christensen Date: Mon, 31 Oct 2022 19:42:22 -0500 Subject: [PATCH] Use des3 for certs in testing / CI --- CONTRIBUTING.md | 2 +- ci/setup_test.bash | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 4e8b9e3d..b057b12c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -90,7 +90,7 @@ chmod 600 $POSTGRESQL_DATA_DIR/server.key cp localhost.crt $POSTGRESQL_DATA_DIR/server.crt # Generate the certificate for client authentication. -openssl genrsa -des -out pgx_sslcert.key -passout pass:certpw 2048 +openssl genrsa -des3 -out pgx_sslcert.key -passout pass:certpw 2048 openssl req -new -config pgx_sslcert.cnf -key pgx_sslcert.key -passin pass:certpw -out pgx_sslcert.csr openssl x509 -req -in pgx_sslcert.csr -CA ca.pem -CAkey ca.key -CAcreateserial -out pgx_sslcert.crt -days 363 -sha256 -extfile pgx_sslcert.cnf -extensions v3_req diff --git a/ci/setup_test.bash b/ci/setup_test.bash index 5c3800e5..84a58224 100755 --- a/ci/setup_test.bash +++ b/ci/setup_test.bash @@ -32,7 +32,7 @@ then sudo cp localhost.crt /etc/postgresql/$PGVERSION/main/server.crt # Generate the certificate for client authentication. - openssl genrsa -des -out pgx_sslcert.key -passout pass:certpw 2048 + openssl genrsa -des3 -out pgx_sslcert.key -passout pass:certpw 2048 openssl req -new -config pgx_sslcert.cnf -key pgx_sslcert.key -passin pass:certpw -out pgx_sslcert.csr openssl x509 -req -in pgx_sslcert.csr -CA ca.pem -CAkey ca.key -CAcreateserial -out pgx_sslcert.crt -days 363 -sha256 -extfile pgx_sslcert.cnf -extensions v3_req