pyopenssl
pyopenssl copied to clipboard
A Python wrapper around the OpenSSL library
With this change an (Certificate Transparency) SCT can be verified against the public key of a CT-Log. CT-Logs usually are signed with an elliptic curve digest. The argument `cert` of...
In Ruby, it's simple to use PKC7 to encrypt/decrypt ``` public_key_pem = File.read public_key public_key_x509 = OpenSSL::X509::Certificate.new( public_key_pem ) cipher = OpenSSL::Cipher::AES.new(256, :CBC) OpenSSL::PKCS7::encrypt([public_key_x509], plaintext, cipher, ``` It's so painful...
When packaging on NixOS, we noticed a test failure when building pyOpenSSL 20.0.0 for the i686 architecture: ``` ============================= test session starts ============================== platform linux -- Python 3.8.6, pytest-6.1.2, py-1.9.0,...
OpenSSL.test.test_ssl.ContextTests.test_set_default_verify_paths() triggers error when network connection is absent. It is the only test in pyOpenSSL test suite with this problem. ``` ====================================================================== ERROR: test_set_default_verify_paths (OpenSSL.test.test_ssl.ContextTests) ---------------------------------------------------------------------- Traceback (most recent call...
Whenever I try to build pyopenssl-17.2.0 on my gentoo system I get the following test failure: ``` tests/test_crypto.py::TestX509StoreContext::test_verify_with_time FAILED [...] ================================================================== FAILURES ================================================================== _________________________________________________ TestX509StoreContext.test_verify_with_time _________________________________________________ self = def test_verify_with_time(self):...
Here is the current list for pyopenssl https://github.com/pyca/pyopenssl/blob/master/src/OpenSSL/crypto.py#L1556 Here is the list for crytography https://github.com/pyca/cryptography/blob/d3eae8d7dbcd7ca491531424a4ac8b4838acf199/src/_cffi_src/openssl/x509_vfy.py#L105 Maybe rewrite X509StoreFlags to automatically export any `X509_V_FLAG_*` attribute from cryptography. But I am not...
Please look into https://github.com/SecureAuthCorp/impacket/issues/866 and https://github.com/SecureAuthCorp/impacket/issues/856. I think that problem is not in impacket, but in pyOpenSSL.
The OpenSSL documentation says that in the event of a WANT_WRITE_ERROR or WANT_READ_ERROR, the same OpenSSL method call is to be repeated, otherwise you will get a bad write retry...
I'm seeing a weird issue when starting a TLS connection to any host. If I don't set any timeout on the socket, it works fine. If I do, it breaks...
Passing a unicode string to the sign method in Python 2.6, I get the following error: File "/usr/local/lib/python2.6/dist-packages/pyOpenSSL-0.14-py2.6.egg/OpenSSL/crypto.py", line 827, in sign evp_md = _lib.EVP_get_digestbyname(_byte_string(digest)) TypeError: initializer for ctype 'char...