Skip to content

Commit

Permalink
#9: Added right chmod/chown for certificates
Browse files Browse the repository at this point in the history
flavienbwk committed Jun 7, 2023
1 parent 967c0af commit b4f35e1
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions generate-certs-hot-warm.sh
Original file line number Diff line number Diff line change
@@ -32,3 +32,6 @@ do
openssl x509 -req -extfile <(printf "subjectAltName=DNS:localhost,IP:127.0.0.1,DNS:$NODE_NAME") -in "certs/$NODE_NAME/$NODE_NAME.csr" -CA certs/ca/ca.pem -CAkey certs/ca/ca.key -CAcreateserial -sha256 -out "certs/$NODE_NAME/$NODE_NAME.pem"
rm "certs/$NODE_NAME/$NODE_NAME-temp.key" "certs/$NODE_NAME/$NODE_NAME.csr"
done

chmod -R 750 ./certs
chown -R $USER:1000 ./certs
3 changes: 3 additions & 0 deletions generate-certs.sh
Original file line number Diff line number Diff line change
@@ -32,3 +32,6 @@ do
openssl x509 -req -extfile <(printf "subjectAltName=DNS:localhost,IP:127.0.0.1,DNS:$NODE_NAME") -in "certs/$NODE_NAME/$NODE_NAME.csr" -CA certs/ca/ca.pem -CAkey certs/ca/ca.key -CAcreateserial -sha256 -out "certs/$NODE_NAME/$NODE_NAME.pem"
rm "certs/$NODE_NAME/$NODE_NAME-temp.key" "certs/$NODE_NAME/$NODE_NAME.csr"
done

chmod -R 750 ./certs
chown -R $USER:1000 ./certs

0 comments on commit b4f35e1

Please sign in to comment.