Skip to content

Instantly share code, notes, and snippets.

@georgeOsdDev
Created January 6, 2015 03:42
Show Gist options
  • Save georgeOsdDev/2cf100106edcbd0f3b93 to your computer and use it in GitHub Desktop.
Save georgeOsdDev/2cf100106edcbd0f3b93 to your computer and use it in GitHub Desktop.
cert file to jks
# https://docs.oracle.com/cd/E19416-01/820-5959/6nhaosbus/index.html
# http://wiki.eclipse.org/Jetty/Howto/Configure_SSL
openssl pkcs12 -export \
-in ./my.crt \
-inkey ./my.key \
-certfile intermediate.crt \
-out ./keystore.pkcs12 \
-name "xitrum"
keytool -v -importkeystore \
-srckeystore ./keystore.pkcs12 \
-srcstoretype pkcs12 \
-destkeystore ./my.jks \
-deststoretype jks \
-destalias "xitrum" \
-destkeypass "xitrum" \
-deststorepass "xitrum"
-alias "xutrun"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment