How to get PrivateKey, PublicKey, Cert ID:
Posted wangxusummer
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了How to get PrivateKey, PublicKey, Cert ID:相关的知识,希望对你有一定的参考价值。
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:的主要内容,如果未能解决你的问题,请参考以下文章
How to get service execuable path
How to get date from OAMessageDateFieldBean