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, ≈27🔥, 0💬
Popular Posts:
How to verify the digital signature inside a CSR using OpenSSL "req -verify" command? If you want to...
Certificate summary - Owner: DigiCert SHA2 High Assurance Server CA, www.digicert.com, DigiCert Inc,...
Certificate Summary: Subject: DigiCert High Assurance CA-3 Issuer: DigiCert High Assurance EV Root C...
Certificate Summary: Subject: *.redtube.com Issuer: DigiCert SHA2 High Assurance Server CA Expiratio...
Key Summary: Type: RSA 8192-Bit Public Key Identifier: 2C:67:1C:82:64:55:A6:D8: 06:55:2D:AC:05:DA:2B:...