summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Binetti <dbinetti@gmail.com>2017-03-28 10:17:53 -0700
committerDavid Binetti <dbinetti@gmail.com>2017-03-28 10:17:53 -0700
commit3cb92d5b1a2a8f19203c1161f1989ba86262fddb (patch)
treeedc10e14946bab8c8d1f17f07dd41cea17aeb23d
parent5bc498a60a01322b1271e1a1e99791a6938e21d7 (diff)
downloadpyjwt-3cb92d5b1a2a8f19203c1161f1989ba86262fddb.tar.gz
Update FAQ to clarify Python2/3 differences
-rw-r--r--docs/faq.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/faq.rst b/docs/faq.rst
index 59a6cb6..336640c 100644
--- a/docs/faq.rst
+++ b/docs/faq.rst
@@ -17,6 +17,11 @@ extract the public or private keys from a x509 certificate in PEM format.
public_key = cert_obj.public_key()
private_key = cert_obj.private_key()
+.. note:: These instructions are for Python 2.
+ For Python 3, call ``encode()`` on ``cert_str`` to convert it
+ into bytes before calling ``load_pem_x509_certificate``.
+
+
I'm using Google App Engine and can't install `cryptography`, what can I do?
----------------------------------------------------------------------------