Skip to content

Instantly share code, notes, and snippets.

@georgechang
Created October 25, 2017 00:24
Show Gist options
  • Save georgechang/86df5173c5dcd7a4bd0a72830f58dd72 to your computer and use it in GitHub Desktop.
Save georgechang/86df5173c5dcd7a4bd0a72830f58dd72 to your computer and use it in GitHub Desktop.
Generate Solr SSL key
keytool -genkeypair -alias solr-ssl -keyalg RSA -keysize 2048 -keypass secret -storepass secret -validity 9999 -keystore solr-ssl.keystore.jks -ext SAN=DNS:localhost,IP:127.0.0.1 -dname "CN=localhost, OU=Organizational Unit, O=Organization, L=Location, ST=State, C=Country"
keytool -importkeystore -srckeystore solr-ssl.keystore.jks -destkeystore solr-ssl.keystore.p12 -srcstoretype jks -deststoretype pkcs12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment