keytool
You can get this tool after you installed jdk.
Command
C:\Program Files\Java\jdk1.8.0_121\bin>keytool.exe -genkey -alias "webrowser" -keyalg "RSA" -validity 10000 -keystore "webrowser.keystore"
Enter keystore password:
Re-enter new password:
What is your first and last name?
[Unknown]: Errong
What is the name of your organizational unit?
[Unknown]: Errong
What is the name of your organization?
[Unknown]: Errong
What is the name of your City or Locality?
[Unknown]: Nanjing
What is the name of your State or Province?
[Unknown]: JiangSu
What is the two-letter country code for this unit?
[Unknown]: CN
Is CN=Errong, OU=Errong, O=Errong, L=Nanjing, ST=JiangSu, C=CN correct?
[no]:
What is your first and last name?
[Errong]:
What is the name of your organizational unit?
[Errong]:
What is the name of your organization?
[Errong]:
What is the name of your City or Locality?
[Nanjing]:
What is the name of your State or Province?
[JiangSu]:
What is the two-letter country code for this unit?
[CN]:
Is CN=Errong, OU=Errong, O=Errong, L=Nanjing, ST=JiangSu, C=CN correct?
[no]: yes
Enter key password for
(RETURN if same as keystore password):
keystore file
C:\Program Files\Java\jdk1.8.0_121\bin>dir webrowser.keystore
Volume in drive C has no label.
Volume Serial Number is 40EA-8B0A
Directory of C:\Program Files\Java\jdk1.8.0_121\bin
12/27/2017 07:19 PM 2,230 webrowser.keystore
1 File(s) 2,230 bytes
0 Dir(s) 58,290,343,936 bytes free
list keystore file
C:\Program Files\Java\jdk1.8.0_121\bin>keytool -list -v -keystore webrowser.keystore
Enter keystore password:
Keystore type: JKS
Keystore provider: SUN
Your keystore contains 1 entry
Alias name: webrowser
Creation date: Dec 27, 2017
Entry type: PrivateKeyEntry
Certificate chain length: 1
Certificate[1]:
Owner: CN=Errong, OU=Errong, O=Errong, L=Nanjing, ST=JiangSu, C=CN
Issuer: CN=Errong, OU=Errong, O=Errong, L=Nanjing, ST=JiangSu, C=CN
Serial number: 4c63eb8d
Valid from: Wed Dec 27 19:19:32 CST 2017 until: Sun May 14 19:19:32 CST 2045
Certificate fingerprints:
MD5: 4F:87:B6:11:A4:37:5A:29:E4:A2:F7:BD:2B:DC:CC:18
SHA1: 21:F8:D8:7E:39:8E:49:C5:BE:A0:A1:8A:19:5E:3F:C0:4E:3F:05:66
SHA256: 77:31:F3:CB:D5:C1:1F:8D:1B:9E:A8:9D:5F:65:C8:64:56:48:8A:FB:32:BB:05:D2:5D:13:B0:8A:2C:92:D3:9F
Signature algorithm name: SHA256withRSA
Version: 3
Extensions:
#1: ObjectId: 2.5.29.14 Criticality=false
SubjectKeyIdentifier [
KeyIdentifier [
0000: 67 8A E4 45 0E 2D 10 87 44 E4 11 B2 C8 34 B1 A5 g..E.-..D....4..
0010: 62 4B FA BD bK..
]
]