Last active
December 11, 2015 06:39
-
-
Save jarek-przygodzki/4560761 to your computer and use it in GitHub Desktop.
Generate a Self Signed Certificate using Java Keytool
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
keytool -genkey -keyalg RSA -alias selfsigned -keystore keystore.jks -storepass password -validity 360 -keysize 2048 | |
- OR - | |
# generate an RSA keypair | |
keytool -genkey -alias selfsigned -keystore keystore.jks | |
# The next step in self-signing is to create a digital certificate | |
keytool -selfcert -keystore keystore.jks -alias selfsigned -storepass password |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment