使用 openssl
工具獲取蒋歌,如果未安裝使用 brew
安裝即可帅掘。
1. 導(dǎo)出對應(yīng)的開發(fā)證書的 p12 文件
2.提取證書
openssl pkcs12 -in 證書.p12 -clcerts -nokeys -out Certificate.crt
3. 獲取MD5
openssl x509 -noout -fingerprint -md5 -inform pem -in Certificate.crt
4. 獲取公鑰
openssl x509 -pubkey -noout -inform pem -in Certificate.crt > PublicKey.pem
cat PublicKey.pem