Skip to content

Commit

Permalink
Added warning about SHA1 being used for response signing in ocsp.rst (#…
Browse files Browse the repository at this point in the history
…10204)

* Update ocsp.rst

Added warning about SHA1 being used for sign()

* Update ocsp.rst

Fixed spelling issues, at least according to en-GB dictionary.

* Update ocsp.rst

Spell checker didn't catch "algorithim" somehow.

* Update ocsp.rst

Attempting to rephrase the warning.

* Update ocsp.rst

Removing rouge space.
  • Loading branch information
Hacksawfred3232 authored Jan 19, 2024
1 parent 82f715c commit bd0a064
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/x509/ocsp.rst
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,11 @@ Creating Responses
:class:`~cryptography.hazmat.primitives.asymmetric.ed448.Ed448PrivateKey`
and an instance of a
:class:`~cryptography.hazmat.primitives.hashes.HashAlgorithm`
otherwise.
otherwise. Please note that
:class:`~cryptography.hazmat.primitives.hashes.SHA1`
can not be used here, regardless of if it was used for
:meth:`~cryptography.x509.ocsp.OCSPResponseBuilder.add_response`
or not.

:returns: A new :class:`~cryptography.x509.ocsp.OCSPResponse`.

Expand Down

0 comments on commit bd0a064

Please sign in to comment.