Skip to content

Instantly share code, notes, and snippets.

@matthiasbalke
Created May 19, 2021 09:02
Show Gist options
  • Save matthiasbalke/3be80c02455adf1288009fbfe8b601ed to your computer and use it in GitHub Desktop.
Save matthiasbalke/3be80c02455adf1288009fbfe8b601ed to your computer and use it in GitHub Desktop.
create Java PKCS#12 keystore
#!/bin/bash
# place server key in server.key
# place server certificate in server.crt
# place intermediate certificate in intermediate.crt
cat server.crt intermediate.crt > certificate.chain.crt
openssl pkcs12 -export -inkey server.key -in certificate.chain.crt -name my-server -out server.p12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment