Skip to content

Commit 1dc064a

Browse files
authored
Add warning about ext. policies and ServerVerifier. (#12458)
1 parent e8bf6a1 commit 1dc064a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/x509/verification.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,10 @@ the root of trust:
277277
The default policies used are those returned by :meth:`ExtensionPolicy.webpki_defaults_ee`
278278
and :meth:`ExtensionPolicy.webpki_defaults_ca`.
279279

280+
.. warning::
281+
If the PolicyBuilder will be used to build a :class:`ServerVerifier`, the EE extension policy
282+
`must require` the :class:`~cryptography.x509.SubjectAlternativeName` extension to be present.
283+
280284
:param ExtensionPolicy new_ca_policy: The CA extension policy to use.
281285
:param ExtensionPolicy new_ee_policy: The EE extension policy to use.
282286

0 commit comments

Comments
 (0)