-
Notifications
You must be signed in to change notification settings - Fork 93
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
Replace PyOpenSSL with PyCA Crytography #501
Comments
@tiran I'd be very happy to drop the PyOpenSSL dependency. If I recall correctly, I needed it to do certificate chain validation and cryptography didn't have an API for that. Is that still the case? I saw it was mentioned that Alex was working on an implementation, but I couldn't find a PR or changelog entry so I'm guessing that's not landed yet. |
PyOpenSSL is implemented on top of cryptography. You should be able to do anything with cryptography, but cryptography may not have a public API for that. I'll get back to you. |
For the record, cryptography does not have an API for cert chain validation against a CRL and trust anchors yet, fedmsg/fedmsg/crypto/x509_ng.py Lines 209 to 240 in 78c0ffa
|
Thanks for looking into that. I think that in the medium to long term, fedmsg will drop the signing/verifying messages feature. ZeroMQ provides a feature that covers message authentication so fedmsg doesn't need its own. If the API shows up in cryptography great, but we really should get rid of all the crypto code anyway. |
fedmsg uses PyCA cryptography and PyOpenSSL's OpenSSL.crypto module. Please consider to use only PyCA cryptography.
https://pyopenssl.readthedocs.io/en/stable/api/crypto.html
PyOpenSSL is used in fedmsg.crypto.x509_ng:
fedmsg/fedmsg/crypto/x509_ng.py
Lines 25 to 39 in 78c0ffa
The text was updated successfully, but these errors were encountered: