#  keytool --help

 

【keytool】keytool查看jks证书详情

 

缺省情况下,-list 命令打印证书的 MD5 指纹,而如果指定了 -v 选项,将以可读格式打印证书,如果指定了 -rfc 选项,将以可打印的编码格式输出证书。

 

# keytool  -list  -rfc  -keystore  keystore   -storepass  "storepwd"

 

【keytool】keytool查看jks证书详情

# keytool -v -list -keystore keystore -storepass "storepwd"

 

【keytool】keytool查看jks证书详情

 

# keytool  -printcert  -sslserver  192.168.1.103:2019  -rfc 

# keytool  -printcert  -sslserver  192.168.1.103:2019  -rfc   >  /etc/pki/ca-trust/source/anchors/nexus.crt

# update-ca-trust

【keytool】keytool查看jks证书详情

 

 

参考

 

keytool】用keytool创建keystore和trustsotre文件

https://www.jianshu.com/p/1b1c9cfa17a4

 

【keytool】如何使用使用Java**库工作?

https://www.jianshu.com/p/d67d5d76fd84

 

【keytool】Signing Certificates With Your Own CA

https://www.jianshu.com/p/a30a0459102e

 

相关文章: