pyopenssl
pyopenssl copied to clipboard
A Python wrapper around the OpenSSL library
```console + /usr/bin/python3 -Bm pytest -ra =========================================================================== test session starts ============================================================================ platform linux -- Python 3.8.9, pytest-6.2.4, py-1.10.0, pluggy-0.13.1 OpenSSL: b'OpenSSL 1.1.1k FIPS 25 Mar 2021' cryptography: 3.3.1 rootdir: /home/tkloczko/rpmbuild/BUILD/pyopenssl-20.0.1,...
Hi, Not a real big issue but something i found while looking at the code Seems all digest need to be passed as `str` and get then converted to `bytes`...
I'm trying to package your module as an rpm package. So I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account. -...
```python client = socket_any_family() client.connect(("encrypted.google.com", 443)) clientSSL = Connection(context, client) clientSSL.set_connect_state() clientSSL.set_tlsext_host_name(b"encrypted.google.com") clientSSL.do_handshake() clientSSL.send(b"GET / HTTP/1.0\r\n\r\n") > assert clientSSL.recv(1024) tests/test_ssl.py:1308: _ _ _ _ _ _ _ _ _ _...
In a TLS client, I observe that, after a `session.shutdown()`, `session.get_shutdown()` returns 1 (shutdown sent, no shutdown received). But OpenSSL on the command line with the same server show me...
Hi! Is there any way to get ticket key using pyOpenSSL? I have found how to check if the ticket was given or not by the server (something like `_lib.SSL_SESSION_has_ticket(sess._session)`)...
I have been looking for a python package which allows the use of OCSP stapling. Found PyOpenSSL but I am not sure if it covers everything needed for the OCSP...
Currently PKCS#7 verification is a bit hampered by the lack of X509_STORE_set_purpose() support; as it is becoming increasingly common (JWT, COSE, etc) to sign using CMS - yet run afoul...