Categories:
Android (13)
Apple Mac (27)
DH Keys (39)
DSA Keys (70)
EC Keys (971)
Firefox (30)
General (10)
Google Chrome (25)
Intermediate CA (152)
Java VM (29)
JDK Keytool (28)
Microsoft CertUtil (29)
Microsoft Edge (9)
Mozilla CertUtil (21)
OpenSSL (236)
Other (7)
Portecle (38)
Publishers (3292)
Revoked Certificates (16)
Root CA (85)
RSA Keys (2636)
Tools (46)
Tutorial (1)
What Is (22)
Windows (127)
Collections:
Other Resources:
"keytool -genkeypair" Command Examples - Generate Key Pair
How to use the "keytool -genkeypair" command? I want to generate a pair of public key and private key for myself.
✍: FYIcenter.com
Here is an example of using "keytool -genkeypair" command to generate
a pair of public key and private key for yourself:
C:\Users\fyicenter> keytool -genkeypair -dname CN=www.fyicenter.com -storepass FYIcenter -keypass FYIcenter
What this command did for you:
If you run the command again, you should get an error, because Keytool can not add another entry with the same alias name "mykey" in the same keystore file.
C:\Users\fyicenter> keytool -genkeypair -dname CN=www.fyicenter.com -storepass FYIcenter -keypass FYIcenter keytool error: java.lang.Exception: Key pair not generated, alias <mykey> already exists
To create another key pair in the same keystore file, use the "-alias" to provide a new name:
C:\Users\fyicenter> keytool -genkeypair -dname CN=jar.fyicenter.com -storepass FYIcenter -keypass FYIcenter -alias 2ndkey
⇒ Java "keytool -exportcert" Command Options
⇐ Java "keytool -genkeypair" Command Options
2012-07-19, 23475👍, 0💬
Popular Posts:
Certificate Summary: Subject: www.facebook.com Issuer: VeriSign, Inc., VeriSign International Server...
How to export my private key and public key pair with it's certificates into a PKCS #12 keystore fil...
Certificate Summary: Subject: Entrust Certification Authority - L1M Issuer: Entrust Root Certificati...
Certificate summary - Owner: UTN-USERFirst-Hardware, http://www.usertrust.com ,The USERTRUST Network...
Certificate summary - Owner: Go Daddy Secure Certificate Authority - G2, http://certs.godaddy.com /re...