Skip to content

Instantly share code, notes, and snippets.

@silverbp
Created May 23, 2015 20:35
Show Gist options
  • Save silverbp/b2544d4caf547e1b015e to your computer and use it in GitHub Desktop.
Save silverbp/b2544d4caf547e1b015e to your computer and use it in GitHub Desktop.
Java Keystore with existing Certs
openssl pkcs12 -export -out certificate.pfx -inkey privateKey.key -in certificate.crt -certfile CACert.crt
keytool -importkeystore -deststorepass ubiquiti -destkeypass ubiquiti -destkeystore keystore -srckeystore certificate.pfx -srcstoretype PKCS12 -srcstorepass ubiquiti -alias 1
keytool -changealias -alias "1" -destalias "airvision" -keypass ubiquiti -keystore /path/to/keystore -storepass ubiquiti
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment