Skip to content

Commit 7b542f7

Browse files
author
Michael Davis
committed
Update docs with note about X.509 certificates
1 parent cc402f8 commit 7b542f7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/jwk/index.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,12 @@ Verifying token signatures
2828
>>> message, encoded_sig = token.rsplit('.', 1)
2929
>>> decoded_sig = base64url_decode(encoded_sig)
3030
>>> key.verify(message, decoded_sig)
31+
32+
33+
Note
34+
^^^^
35+
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.
36+
37+
.. code:: bash
38+
39+
> openssl x509 -pubkey -noout < cert.pem

0 commit comments

Comments
 (0)