<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/pyopenssl-git.git/tests/test_crypto.py, branch gha</title>
<subtitle>github.com: pyca/pyopenssl.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/pyopenssl-git.git/'/>
<entry>
<title>crypto._PassphraseHelper: pass non-callable passphrase using callback (#947)</title>
<updated>2020-10-13T04:14:19+00:00</updated>
<author>
<name>Huw Jones</name>
<email>huw@huwcbjones.co.uk</email>
</author>
<published>2020-10-13T04:14:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/pyopenssl-git.git/commit/?id=cdd6696025b997646497b85cc0db6b27db12f92b'/>
<id>cdd6696025b997646497b85cc0db6b27db12f92b</id>
<content type='text'>
* crypto._PassphraseHelper: pass non-callable passphrase using callback
Fixes #945

Before this commit, we would pass a bytes passphrase as a null terminated string.
This causes issue when a randomly generated key's first byte is null because
OpenSSL rightly determines the key length is 0.
This commit modifies the passphrase helper to pass the passphrase via the
 callback

* Update changelog to document bug fix</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* crypto._PassphraseHelper: pass non-callable passphrase using callback
Fixes #945

Before this commit, we would pass a bytes passphrase as a null terminated string.
This causes issue when a randomly generated key's first byte is null because
OpenSSL rightly determines the key length is 0.
This commit modifies the passphrase helper to pass the passphrase via the
 callback

* Update changelog to document bug fix</pre>
</div>
</content>
</entry>
<entry>
<title>Allow using additional untrusted certificates for chain building in X509StoreContext (#948)</title>
<updated>2020-10-12T13:42:23+00:00</updated>
<author>
<name>Sándor Oroszi</name>
<email>oroszisam@gmail.com</email>
</author>
<published>2020-10-12T13:42:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/pyopenssl-git.git/commit/?id=83ef2306a1481e0cf7f53899c390497256711e29'/>
<id>83ef2306a1481e0cf7f53899c390497256711e29</id>
<content type='text'>
The additional certificates provided in the new `chain` parameter will be
untrusted but may be used to build the chain.

This makes it easier to validate a certificate against a store which
contains only root ca certificates, and the intermediates come from e.g.
the same untrusted source as the certificate to be verified.

Co-authored-by: Sandor Oroszi &lt;sandor.oroszi@balabit.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The additional certificates provided in the new `chain` parameter will be
untrusted but may be used to build the chain.

This makes it easier to validate a certificate against a store which
contains only root ca certificates, and the intermediates come from e.g.
the same untrusted source as the certificate to be verified.

Co-authored-by: Sandor Oroszi &lt;sandor.oroszi@balabit.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>Allow using an OpenSSL hashed directory for verification in X509Store (#943)</title>
<updated>2020-09-11T15:17:31+00:00</updated>
<author>
<name>Sándor Oroszi</name>
<email>oroszisam@gmail.com</email>
</author>
<published>2020-09-11T15:17:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/pyopenssl-git.git/commit/?id=43c97767afe7aa1dccefec35946dbc8b9cde73a4'/>
<id>43c97767afe7aa1dccefec35946dbc8b9cde73a4</id>
<content type='text'>
Add X509Store.load_locations() to set a CA bundle file and/or an OpenSSL-
style hashed CA/CRL lookup directory, similar to the already existing
SSL.Context.load_verify_locations().

Co-authored-by: Sandor Oroszi &lt;sandor.oroszi@balabit.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add X509Store.load_locations() to set a CA bundle file and/or an OpenSSL-
style hashed CA/CRL lookup directory, similar to the already existing
SSL.Context.load_verify_locations().

Co-authored-by: Sandor Oroszi &lt;sandor.oroszi@balabit.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>Allow accessing a connection's verfied certificate chain (#894)</title>
<updated>2020-08-05T23:48:51+00:00</updated>
<author>
<name>Shane Harvey</name>
<email>shane.harvey@mongodb.com</email>
</author>
<published>2020-08-05T23:48:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/pyopenssl-git.git/commit/?id=33c5499ce34f5e1c7c2630c6a1446353eee31755'/>
<id>33c5499ce34f5e1c7c2630c6a1446353eee31755</id>
<content type='text'>
* Allow accessing a connection's verfied certificate chain

Add X509StoreContext.get_verified_chain using X509_STORE_CTX_get1_chain.
Add Connection.get_verified_chain using SSL_get0_verified_chain if
available (ie OpenSSL 1.1+) and X509StoreContext.get_verified_chain
otherwise.
Fixes #740.

* TLSv1_METHOD -&gt; SSLv23_METHOD

* Use X509_up_ref instead of X509_dup

* Add _openssl_assert where appropriate

* SSL_get_peer_cert_chain should not be null

* Reformat with black

* Fix &lt;OpenSSL.crypto.X509 object at 0x7fdbb59e8050&gt; != &lt;OpenSSL.crypto.X509 object at 0x7fdbb59daad0&gt;

* Add Changelog entry

* Remove _add_chain</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Allow accessing a connection's verfied certificate chain

Add X509StoreContext.get_verified_chain using X509_STORE_CTX_get1_chain.
Add Connection.get_verified_chain using SSL_get0_verified_chain if
available (ie OpenSSL 1.1+) and X509StoreContext.get_verified_chain
otherwise.
Fixes #740.

* TLSv1_METHOD -&gt; SSLv23_METHOD

* Use X509_up_ref instead of X509_dup

* Add _openssl_assert where appropriate

* SSL_get_peer_cert_chain should not be null

* Reformat with black

* Fix &lt;OpenSSL.crypto.X509 object at 0x7fdbb59e8050&gt; != &lt;OpenSSL.crypto.X509 object at 0x7fdbb59daad0&gt;

* Add Changelog entry

* Remove _add_chain</pre>
</div>
</content>
</entry>
<entry>
<title>update cert fixtures and simplify tests (#927)</title>
<updated>2020-08-03T22:50:31+00:00</updated>
<author>
<name>Paul Kehrer</name>
<email>paul.l.kehrer@gmail.com</email>
</author>
<published>2020-08-03T22:50:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/pyopenssl-git.git/commit/?id=beaf9f514ae9db428a17e96520111c27f3c330d9'/>
<id>beaf9f514ae9db428a17e96520111c27f3c330d9</id>
<content type='text'>
* simplify

* generate new certs and keys with 3072-bit RSA

* black

* add a test to avoid losing coverage</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* simplify

* generate new certs and keys with 3072-bit RSA

* black

* add a test to avoid losing coverage</pre>
</div>
</content>
</entry>
<entry>
<title>make our CI less frustrating (#926)</title>
<updated>2020-08-03T20:54:20+00:00</updated>
<author>
<name>Paul Kehrer</name>
<email>paul.l.kehrer@gmail.com</email>
</author>
<published>2020-08-03T20:54:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/pyopenssl-git.git/commit/?id=c45a6ea2c9a792d1cf55eed024bad519d3174819'/>
<id>c45a6ea2c9a792d1cf55eed024bad519d3174819</id>
<content type='text'>
* make our CI less frustrating

* sigh, even less sensitive

* can we stop doing this on macos now?</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* make our CI less frustrating

* sigh, even less sensitive

* can we stop doing this on macos now?</pre>
</div>
</content>
</entry>
<entry>
<title>Paint it Black by the Rolling Stones (#920)</title>
<updated>2020-07-24T00:40:46+00:00</updated>
<author>
<name>Alex Gaynor</name>
<email>alex.gaynor@gmail.com</email>
</author>
<published>2020-07-24T00:40:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/pyopenssl-git.git/commit/?id=037371861693f26297320dcd5fd8c221b6d8df26'/>
<id>037371861693f26297320dcd5fd8c221b6d8df26</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix generated test X.509 certificates. (#917)</title>
<updated>2020-06-24T21:14:16+00:00</updated>
<author>
<name>David Benjamin</name>
<email>davidben@google.com</email>
</author>
<published>2020-06-24T21:14:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/pyopenssl-git.git/commit/?id=6b79947fa3ce38795de4fc16db3095f3216935ca'/>
<id>6b79947fa3ce38795de4fc16db3095f3216935ca</id>
<content type='text'>
From RFC 5280, section 4.1.2.9:

   [Extensions] MUST only appear if the version is 3 (Section 4.1.2.1).
   If present, this field is a SEQUENCE of one or more certificate
   extensions.  The format and content of certificate extensions in the
   Internet PKI are defined in Section 4.2.

X509 objects default to v1, so the test certs need a set_version(2) call. (Note
v3 is encoded as 2.)</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
From RFC 5280, section 4.1.2.9:

   [Extensions] MUST only appear if the version is 3 (Section 4.1.2.1).
   If present, this field is a SEQUENCE of one or more certificate
   extensions.  The format and content of certificate extensions in the
   Internet PKI are defined in Section 4.2.

X509 objects default to v1, so the test certs need a set_version(2) call. (Note
v3 is encoded as 2.)</pre>
</div>
</content>
</entry>
<entry>
<title>Fix PKey.check for some broken keys (#897)</title>
<updated>2020-03-11T21:03:59+00:00</updated>
<author>
<name>Mrmaxmeier</name>
<email>Mrmaxmeier@gmail.com</email>
</author>
<published>2020-03-11T21:03:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/pyopenssl-git.git/commit/?id=8cd3b17ec79ec2049eb9d8d6d162b417012144a2'/>
<id>8cd3b17ec79ec2049eb9d8d6d162b417012144a2</id>
<content type='text'>
* fix PKey.check for some broken keys

RSA_check_key is documented to return 1 for valid keys.
It (currently) returns 0 or -1 for invalid ones.
The previous code accepted invalid keys if RSA_check_key returns -1!

* add test</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* fix PKey.check for some broken keys

RSA_check_key is documented to return 1 for valid keys.
It (currently) returns 0 or -1 for invalid ones.
The previous code accepted invalid keys if RSA_check_key returns -1!

* add test</pre>
</div>
</content>
</entry>
<entry>
<title>Random cleanup around our usage of binary_type (#879)</title>
<updated>2019-11-18T05:18:50+00:00</updated>
<author>
<name>Alex Gaynor</name>
<email>alex.gaynor@gmail.com</email>
</author>
<published>2019-11-18T05:18:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/pyopenssl-git.git/commit/?id=1257600e1603ed57455d92758eb1da857cd61725'/>
<id>1257600e1603ed57455d92758eb1da857cd61725</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
