Skip to content

Instantly share code, notes, and snippets.

@bollinger
bollinger / gist:bb4786ade0caf31e23c8
Last active January 23, 2016 09:13 — forked from ilguzin/gist:6606011
How to convert Java Key Store file to pem/key for nginx
Variation to handle when the java key store has multiple aliases.
0. List the certificates in the java key store.
keytool -keystore oldkeystore.jks -list
1. Convert our ".jks" file to ".p12" (PKCS12 key store format):
keytool -importkeystore -srckeystore oldkeystore.jks -srcalias ??alias?? -destkeystore newkeystore.p12 -deststoretype PKCS12