Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate pin without M2Crypto python module #15

Open
TeunVR opened this issue May 21, 2014 · 1 comment
Open

Generate pin without M2Crypto python module #15

TeunVR opened this issue May 21, 2014 · 1 comment

Comments

@TeunVR
Copy link

TeunVR commented May 21, 2014

If you don't have M2Crypto installed you can use the following openssl commands to generate the pin (on OS X OpenSSL 0.9.8y 5 Feb 2013):

openssl x509 -in certificate.cer -inform DER -outform DER -noout -pubkey | openssl rsa -pubin -outform DER | openssl sha1 -hex

@DirtyJerz
Copy link

This should be included in the README. Installed M2Crypto (and swig, and python-dev) and made it work but this could have saved me like 5 minutes. :P

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants