sudo the CI

pull/1364/head
Jack Christensen 2022-10-31 19:34:59 -05:00
parent 0920c79b02
commit dd07e24a6c
1 changed files with 4 additions and 4 deletions

View File

@ -26,10 +26,10 @@ then
openssl x509 -req -in localhost.csr -CA ca.pem -CAkey ca.key -CAcreateserial -out localhost.crt -days 364 -sha256 -extfile localhost.cnf -extensions v3_req
# Copy certificates to server directory and set permissions.
cp ca.pem /etc/postgresql/$PGVERSION/main/root.crt
cp localhost.key /etc/postgresql/$PGVERSION/main/server.key
chmod 600 /etc/postgresql/$PGVERSION/main/server.key
cp localhost.crt /etc/postgresql/$PGVERSION/main/server.crt
sudo cp ca.pem /etc/postgresql/$PGVERSION/main/root.crt
sudo cp localhost.key /etc/postgresql/$PGVERSION/main/server.key
sudo chmod 600 /etc/postgresql/$PGVERSION/main/server.key
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