摘要: 查PEM格式证 openssl x509 -in ${NAME_FILE} -text -noout 查DER格式证书 openssl x509 -in ${NAME_FILE} -inform der -text -noout DER格式转PEM openssl x509 -inform DER 阅读全文
posted @ 2022-05-26 16:15 bert_qin 阅读(132) 评论(0) 推荐(0) 编辑
摘要: Tips:Java jre /lib/security/cacert的默认密码为changeit 查看keystore中的内容 keytool -list -v -keystore ${file} PKCS#12格式转jks格式 keytool -importkeystore -srckeystor 阅读全文
posted @ 2022-05-26 16:08 bert_qin 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 示例代码 点击查看代码 public static SSLContext getSslContext(){ try { String keystorePath = Paths.get("stores","keystore.p12").toString(); String truststorePath 阅读全文
posted @ 2022-05-26 15:58 bert_qin 阅读(485) 评论(0) 推荐(0) 编辑