码迷,mamicode.com
首页 > 其他好文 > 详细

How to get PrivateKey, PublicKey, Cert ID:

时间:2017-11-24 16:52:08      阅读:158      评论:0      收藏:0      [点我收藏+]

标签:line   sign   pen   nokey   xxxx   xxxxxx   online   lin   result   

0. Prepare cert.pfx and its password, verify_sign_acp.cer

1. Get Private Key
$ openssl pkcs12 -in cert.pfx  -nocerts -nodes | openssl rsa -out private_key.pem

2. Public key is verify_sign_acp.cer

3. Get Cert ID
$ openssl pkcs12 -in cert.pfx -clcerts -nokeys | openssl x509 -serial -noout // result hex eg: XXXXXXXXXX
visit https://lokielse.github.io/hex2dec //Convert hex to decimal online
 

How to get PrivateKey, PublicKey, Cert ID:

标签:line   sign   pen   nokey   xxxx   xxxxxx   online   lin   result   

原文地址:http://www.cnblogs.com/wangxusummer/p/7891049.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!