tonglin0325

 

 该图转自知乎 海棠依旧

 

1.先生成p12文件,生成的时候需要指定密码

openssl pkcs12 -export -in your_crt.crt -inkey your_key.key -out your_p12.p12

2.再生成keystore文件

keytool -importkeystore -v  -srckeystore your_p12.p12 -srcstoretype pkcs12 -srcstorepass 你设置的密码 -destkeystore your_keystore.keystore -deststoretype jks -deststorepass 你设置的密码

3.然后就能使用这个keystore文件和密码来进行https的请求

 

参考

https://blog.csdn.net/u013944791/article/details/73551253

其他证书转换参考

http://www.netkiller.cn/cryptography/openssl/format.html

 

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2021-11-27
  • 2021-09-16
  • 2021-06-21
  • 2021-11-07
  • 2021-06-15
  • 2021-04-25
  • 2021-06-03
猜你喜欢
  • 2022-12-23
  • 2021-05-20
  • 2021-12-15
  • 2021-06-12
  • 2021-04-01
相关资源
相似解决方案