Import key and SSL Certificate into java keystore

∥☆過路亽.° 提交于 2019-12-05 18:54:19

It is possible but not without using third-party libraries.
Java does not use pem format for keystore containers as OpenSSL does so you will have to convert these into a keystore either PKCS12 or JKS.
You can do the conversion by code using bouncy castle or you could use a tool to create a keystore from the pem file and use the keystore in your application.
Try this java application Certificate Helper to do the conversion to keystore

Here is a small utility program what can import pem files: http://www.clearfield.com/key_store_browser/key_store_browser.html

This utility is opensource, you can download the source code.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!