I wanted to convert a file with a .cer extension to .jks file. Can somebody please help me with this? I googled it but did not get much information. Even a tutorial or link would is fine. I guess Java Key Store is used. Thanks.
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
I use BouncyCastle library, latest version (1.51)
PEMConverter is my own class and this method looks like this
This gives you a BouncyCastle X509Certificate. You can convert this to JCE Certificate with the converter.
Now you can use this to load it into a keystore
And this
byte[]
is your PKCS12 file. However, the only difference for JKS is to use the standard JCE provider, and to get aJKS
instance KeyStore instead of thePKCS12
one.