Skip to content

Instantly share code, notes, and snippets.

@li5414
Created September 4, 2023 11:35
Show Gist options
  • Select an option

  • Save li5414/d47cef3dd8c0956f91d4a385e6ff9f83 to your computer and use it in GitHub Desktop.

Select an option

Save li5414/d47cef3dd8c0956f91d4a385e6ff9f83 to your computer and use it in GitHub Desktop.
iOS/Android 签名 公钥/MD5 获取
--p12导出pem
openssl pkcs12 -in xxx.p12 -clcerts -nokeys -out xxx.pem -passin pass:xxx -legacy
-- 获取ios .p12 公钥
openssl x509 -inform pem -pubkey -in xxx.pem
-- 获取ios .p12 md5
openssl x509 -noout -fingerprint -md5 -inform pem -in xxx.pem
--keystore导出p12证书
keytool -importkeystore -srckeystore xxx.keystore -alias xxx.xxx.xxx -storepass password -destkeystore xxx.p12 -deststoretype PKCS12
--p12证书导出pem
C:\msys64\usr\bin\openssl.exe pkcs12 -in xxx.p12 -clcerts -nokeys -out xxx.pem -passin pass:password
--从已经签名的apk解压文件META-INF\CERT.RSA 导出pem
C:\msys64\usr\bin\openssl.exe pkcs7 -inform DER -print_certs -out D:\xxx.pem -in D:\META-INF\CERT.RSA
--从pem获取安卓keystore公钥
C:\msys64\usr\bin\openssl.exe x509 -inform pem -pubkey -in xxx.pem
--从pem获取安卓keystore md5
C:\msys64\usr\bin\openssl.exe x509 -noout -fingerprint -md5 -inform pem -in xxx.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment