Skip to content

Commit

Permalink
Update docs with note about X.509 certificates
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Davis committed Jul 22, 2016
1 parent cc402f8 commit 7b542f7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/jwk/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,12 @@ Verifying token signatures
>>> message, encoded_sig = token.rsplit('.', 1)
>>> decoded_sig = base64url_decode(encoded_sig)
>>> key.verify(message, decoded_sig)
Note
^^^^
python-jose requires the use of public keys, as opposed to X.509 certificates. If you have an X.509 certificate that you would like to convert to a public key that python-jose can consume, you can do so with openssl.

.. code:: bash
> openssl x509 -pubkey -noout < cert.pem

0 comments on commit 7b542f7

Please sign in to comment.