How to Create JSK from certificate chain
I need to create a Java Key S开发者_开发知识库tore (JSK) file from three different certificates. I tried keytool java command but was not able to do so. Then I tried importing each certificate one by one . All the certificates were imported successfully and also the keytool -list command gave the output as three certificates but when I used the JSK in my code it gave error like "No key found" So can anyone tell me how to do that. Thanks in advance
Could you please explain/show what your code is attempting to do with your JKS (Java Key Store)?
From the steps you described above, it looks as if you have imported three certificates into a JKS, but no actual private keys. The error you mentioned in your code "No key found" leads me to believe that you are attempting to load and use a private key (for authentication or another purpose). The only thing you could use your JKS for above is for operations involving public keys / certificates, such as validating trust.
精彩评论