Skip to content

Instantly share code, notes, and snippets.

@cpard
Created May 28, 2014 11:38
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cpard/847c8602063bfb605094 to your computer and use it in GitHub Desktop.
Save cpard/847c8602063bfb605094 to your computer and use it in GitHub Desktop.
openssl commands to create a pkcs12 keystore to be used by ElasticSearch on Azure
#it requires to have your keys created already
openssl pkcs8 -topk8 -nocrypt -in azure-private.key -inform PEM -out azure-pk.pem -outform PEM
openssl x509 -inform der -in azure-certificate.cer -out azure-cert.pem
cat azure-cert.pem azure-pk.pem > azure.pem.txt
openssl pkcs12 -export -in azure.pem.txt -out azurekeystore.pkcs12 -name azure -noiter -nomaciter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment