Skip to content

Instantly share code, notes, and snippets.

@asaph
Created June 2, 2015 20:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asaph/ca1d4358dd8ba1772ad6 to your computer and use it in GitHub Desktop.
Save asaph/ca1d4358dd8ba1772ad6 to your computer and use it in GitHub Desktop.
Generate Self-Signed Cert in JKS format using Java's keytool
#!/bin/sh
keytool -genkey -validity 365 -alias "youralias" -keyalg "RSA" -keystore .keystore -keypass "yourkeypass" -storepass "yourstorepass" -dname "CN=localhost, OU=, O=, L=, S=, C="
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment