Skip to content

Commit 099c8e4

Browse files
committed
gh-149679: Document that cadata does not accept CRLs
1 parent dd1194e commit 099c8e4

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Doc/library/ssl.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1617,7 +1617,8 @@ to speed up repeated connections from the same clients.
16171617
:data:`CERT_NONE`. At least one of *cafile* or *capath* must be specified.
16181618

16191619
This method can also load certification revocation lists (CRLs) in PEM or
1620-
DER format. In order to make use of CRLs, :attr:`SSLContext.verify_flags`
1620+
DER format, but only through *cafile* or *capath* (not *cadata*).
1621+
In order to make use of CRLs, :attr:`SSLContext.verify_flags`
16211622
must be configured properly.
16221623

16231624
The *cafile* string, if present, is the path to a file of concatenated
@@ -1634,6 +1635,8 @@ to speed up repeated connections from the same clients.
16341635
PEM-encoded certificates or a :term:`bytes-like object` of DER-encoded
16351636
certificates. Like with *capath* extra lines around PEM-encoded
16361637
certificates are ignored but at least one certificate must be present.
1638+
Unlike *cafile* and *capath*, *cadata* accepts certificates only; CRLs
1639+
supplied through *cadata* are rejected.
16371640

16381641
.. versionchanged:: 3.4
16391642
New optional argument *cadata*

0 commit comments

Comments
 (0)