简体   繁体   English

如何将.p12或pem证书导入Java密钥库?

[英]How to import a .p12 or pem certificate into a java keystore?

I am trying to call HTTPS web service, the documentation of that WS include some certificates files 我正在尝试调用HTTPS Web服务,该WS的文档包括一些证书文件

1231181189.key
1231181189.p7b
1231181189.pem
Root CA.pem
1231181189.p12

how to import .p12 or .pem or .p7b certificate into a java keystore? 如何导入.p12.pem.p7b证书到Java密钥库中?

Oracle JRE comes with a tool called "keytool" that allows you to import and export certs and key pairs into a Java keystore. Oracle JRE带有一个称为“ keytool”的工具,该工具使您可以将证书和密钥对导入和导出到Java密钥库中。

https://docs.oracle.com/javase/6/docs/technotes/tools/windows/keytool.html https://docs.oracle.com/javase/6/docs/technotes/tools/windows/keytool.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM