lilianjie

JKS转PK8

1. JKS转P12

keytool -importkeystore -srckeystore temp.JKS -destkeystore tmp.p12 -srcstoretype JKS -deststoretype PKCS12

 

2. P12转pem

openssl pkcs12 -in tmp.p12 -nodes -out tmp.rsa.pem

 

3. pem转pk8


openssl pkcs8 -topk8 -outform DER -in tmp.rsa.pem -inform PEM -out my_private.pk8 -nocrypt

 

4. pem转x509.pem

cat tmp.rsa.pem

复制-----BEGIN CERTIFICATE-----到

-----END CERTIFICATE-----的部分,粘贴到temp.x509.pem 即可

发表于 2021-01-18 09:32  万涓成水  阅读(101)  评论(0编辑  收藏  举报
 

分类:

技术点:

相关文章:

  • 2021-08-25
  • 2021-09-07
  • 2021-10-20
  • 2021-12-31
  • 2021-09-15
  • 2021-06-10
  • 2022-12-23
猜你喜欢
  • 2021-11-17
  • 2022-12-23
  • 2021-10-20
  • 2021-10-22
  • 2022-12-23
  • 2021-11-18
  • 2021-07-25
相关资源
相似解决方案