Saving certificate chain in a pkcs12 keystore

后端 未结 2 391
南笙
南笙 2020-12-14 07:40

The following code:

//used Bouncy Castle provider for keyStore
keyStore.setKeyEntry(alias, (Key)keyPair.getPrivate(), pwd, certChain);  

w

2条回答
  •  有刺的猬
    2020-12-14 08:33

    Depending which JDK you use, there are different way to package your application. It happens to us when some people where using Linux and OpenJDK and some other developping on Windows with SunJDK (Oracle).

    The lastest have some extra configuration to do in order to be able to use the strongest algorithms. This article can help you if your problem is related to the JCE Policy.

提交回复
热议问题