Skip to content

Commit

Permalink
Security: fixed permissions on OpenSearch client cert after gen.
Browse files Browse the repository at this point in the history
  • Loading branch information
vladd-bit committed Mar 14, 2024
1 parent 1ef997f commit 739cfc5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions security/create_opensearch_client_cert.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,7 @@ openssl x509 -req -days $ES_CERTIFICATE_TIME_VALIDITY_IN_DAYS -in "$ES_CLIENT_CE

#-extfile <(printf "\nsubjectAltName=DNS:esnode-1,DNS:esnode-2,DNS:elasticsearch-1,DNS:elasticsearch-2,DNS:elasticsearch-node-1,DNS:elasticsearch-node-2,DNS:elasticsearch-cogstack-node-2,DNS:elasticsearch-cogstack-node-1,DNS:localhost")

chmod -R 755 "./$ES_CLIENT_CERT_NAME"*

mv "$ES_CLIENT_CERT_NAME"* $OPENSEARCH_ES_CERTIFICATES_FOLDER

0 comments on commit 739cfc5

Please sign in to comment.