java add self signed certificate to keystore progr

2019-05-27 05:04发布

I added the self signed certificate using keystore from command prompt.

I found several links which tells how to add certificate to keystore, but they all say to store the certificate locally before running program and do the rest via code. I need to add certificate to keystore dynamically.

How can I add a certificate programatically?

1条回答
聊天终结者
2楼-- · 2019-05-27 05:43

You can refer this blog for more help

The JDK JavaDoc for java.security.KeyStore is pretty useful too.

If you want to import from external server refer the sun implementation

查看更多
登录 后发表回答