将可信证书从jks文件导出到.pem,并将私钥作为.pem

时间:2016-11-09 19:10:34

标签: ssl https keystore

我有一个'test6r.jks'文件,其中包含1个私钥和3个可信证书我想获得3个crts作为public.pem,私钥作为private.pem

keytool -list -keystore test6r.jks 
Enter keystore password:  

Keystore type: JKS
Keystore provider: SUN

Your keystore contains 4 entries

symantecclass3secureserverca-g4, Mar 25, 2015, trustedCertEntry, 
Certificate fingerprint (SHA1):
FF:67:36:7C:5C:D4:DE:4A:E1:8B:CC:E1:D7:0F:DA:BD:7C:86:61:35

verisignsvrg3, Mar 25, 2015, trustedCertEntry, 
Certificate fingerprint (SHA1): 5D:EB:8F:33:9E:26:4C:19:F6:68:6F:5F:8F:32:B5:4A:4C:46:B4:76

verisignroot, Mar 25, 2015, trustedCertEntry, 
Certificate fingerprint (SHA1): 4E:B6:D5:78:49:9B:1C:CF:5F:58:1E:AD:56:BE:3D:9B:67:44:A5:E5

test6r, Nov 9, 2016, PrivateKeyEntry, 
Certificate fingerprint (SHA1): C9:E4:A7:CB:A1:31:89:DA:EE:59:A3:50:CD:0E:04:7D:36:6B:23:CB

如何将受信任的证书从jks文件导出到.pem并将私钥作为.pem?

0 个答案:

没有答案