将cer证书转为keystore文件

使用java工具keytool

./keytool -import -file cert-test.cer -keystore cert-test.keystore

cert-test.cer为下载的https证书, cert-test.keystore为存储的文件

输入密钥库口令:
再次输入新口令:
所有者: CN=, OU=, O=, L=WH, ST=WH, C=CN
发布者: CN=, DC=, DC=com
序列号: 
有效期为  至
证书指纹:
         MD5:  
         SHA1: 
         SHA256: 
签名算法名称: 
主体公共密钥算法: 
版本: 

扩展:

#1: ObjectId: 


#2: ObjectId:


#3: ObjectId: 
AuthorityInfoAccess [
  [
   accessMethod: 
   accessLocation: : 
,
   accessMethod: 
   accessLocation: : 
]
]

#4: ObjectId: 
AuthorityKeyIdentifier [
KeyIdentifier [
]
]

#5: ObjectId:
CRLDistributionPoints [
  [DistributionPoint:
     []
]]

#6: ObjectId: 
ExtendedKeyUsages [
  
]

#7: ObjectId: 
KeyUsage [
]

#8: ObjectId: 
SubjectAlternativeName [
]

#9: ObjectId: 
SubjectKeyIdentifier [
KeyIdentifier [  
]
]

是否信任此证书? [否]:  y
证书已添加到密钥库中
image.png

你可能感兴趣的:(将cer证书转为keystore文件)