-
Notifications
You must be signed in to change notification settings - Fork 419
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
FAIL: test_der (__main__.X509NameTests) / FAIL: test_digest (__main__.X509Tests) #150
Comments
For the first one see #115 - you must apply the fix there for OpenSSL >= 1.0.1h to let pyOpenSSL behave consistently. |
The second one relates to #149 again - it's the same ASN1 structure change which causes different digest results. OpenSSL 1.0.1e:
OpenSSL 1.0.1l:
|
Shortened test case from test_crypto.py: from OpenSSL.crypto import X509, FILETYPE_PEM, dump_certificate
cert = X509()
cert.digest("MD5")
dump_certificate(FILETYPE_PEM, cert) OpenSSL 1.0.1e: cert.digest("MD5")
'A8:EB:07:F8:53:25:0A:F2:56:05:C5:A5:C4:C4:C7:15'
dump_certificate(FILETYPE_PEM, cert)
'-----BEGIN CERTIFICATE-----\nMCUwGwIAMAMGAQAwADAEHwAfADAAMAgwAwYBAAMBADADBgEAAwEA\n-----END CERTIFICATE-----\n' OpenSSL 1.0.1l: cert.digest("MD5")
'6E:DB:AA:35:8C:39:8C:86:95:0E:D6:51:7E:42:FF:F4'
dump_certificate(FILETYPE_PEM, cert)
'-----BEGIN CERTIFICATE-----\nMCMwGgIBADACBgAwADAEHwAfADAAMAcwAgYAAwEAMAIGAAMBAA==\n-----END CERTIFICATE-----\n' |
Thanks, I can confirm that the test suite runs now cleanly with the fixes in #193 for both OpenSSL >= and < 1.0.1i. |
@peterpramb Are you seeing any test failures for set_tmp_ecdh() like those in the TravisCI runs? |
No, I don't have this function at all in 0.14. |
No issues using the latest master branch checkout with both OpenSSL versions:
The only strange thing is that the test suite tries to build an extension:
|
the test of the original post are still failing with pyopenssl 0.15 and python-cryptography 0.8.2-1 in the very same way |
This has been fixed for a while I believe. |
correct, this is fixed |
When building pyopenssl 0.14 on Debian (with python-cryptography 0.5.2) I got these failures when running tests in a clean chroot:
the same on 2.7 and 3.4
The text was updated successfully, but these errors were encountered: