Skip to content

Commit

Permalink
simplify some language (pyca#4495)
Browse files Browse the repository at this point in the history
* simplify some language

* Update reference.rst

* wrap

* remove trailing whitespace

the github web editor is bad and should feel bad
  • Loading branch information
reaperhulk authored and alex committed Oct 10, 2018
1 parent 6460228 commit 838bc4a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions docs/x509/reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -462,8 +462,13 @@ X.509 Certificate Object
certificate validation is a complex problem that involves much more
than just signature checks.

An example on how to check if a certificate signature is correct with a method
on the public key (this does not mean that the cert should be trusted):
To validate the signature on a certificate you can do the following.
Note: This only verifies that the certificate was signed with the
private key associated with the public key provided and does not
perform any of the other checks needed for secure certificate
validation. Additionally, this example will only work for RSA public
keys with ``PKCS1v15`` signatures, and so it can't be used for general
purpose signature verification.

.. doctest::

Expand Down

0 comments on commit 838bc4a

Please sign in to comment.