Keytool
From Null-pointer
Access the java certificate store
Contents |
import
[pkane@LONDON|C:\_projects\portal.eclipse.dev\LBSCustom\docs\WEB-INF\]
keytool -import -alias london -file certnew.cer -keystore adkeystore.ks
Enter keystore password: changeit
Owner: CN=sphere, DC=london, DC=campus, DC=london, DC=edu
Serial number: d20ec857588ea6490132df6028838d
Valid from: Mon Jan 16 13:15:22 GMT 2006 until: Sun Jan 16 13:21:41 GMT 2011
Certificate fingerprints:
MD5: 2A:CE:CF:BC:25:89:1F:92:6B:DC:13:1A:EE:43:85:80
SHA1: 22:0E:F5:04:C9:88:EE:D2:21:8E:02:F7:60:33:BF:67:E7:5B:5C:15
Trust this certificate? [no]: yes
Certificate was added to keystore
view
[pkane@LONDON|c:\_projects\portal.eclipse.dev\lbscustom\docs\web-inf]
keytool -list -keystore adkeystore.ks -alias london -v
Enter keystore password: changeit
Alias name: london
Creation date: 28-Mar-2006
Entry type: trustedCertEntry
Owner: CN=sphere, DC=london, DC=campus, DC=london, DC=edu
Issuer: CN=sphere, DC=london, DC=campus, DC=london, DC=edu
Serial number: d20ec857588ea6490132df6028838d
Valid from: Mon Jan 16 13:15:22 GMT 2006 until: Sun Jan 16 13:21:41 GMT 2011
Certificate fingerprints:
MD5: 2A:CE:CF:BC:25:89:1F:92:6B:DC:13:1A:EE:43:85:80
SHA1: 22:0E:F5:04:C9:88:EE:D2:21:8E:02:F7:60:33:BF:67:E7:5B:5C:15
Convert
Importing Keystore[1]
[root@localhost ~]# keytool.exe -importkeystore -srckeystore ace.p12 -destkeystore ace -srcstoretype PKCS12 -deststoretype JKS -srcstorepass ace -deststorepass aceace Entry for alias 1 successfully imported. Import command completed: 1 entries successfully imported, 0 entries failed or cancelled

