Skip to content

Commit 3cb92d5

Browse files
committed
Update FAQ to clarify Python2/3 differences
1 parent 5bc498a commit 3cb92d5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/faq.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ extract the public or private keys from a x509 certificate in PEM format.
1717
public_key = cert_obj.public_key()
1818
private_key = cert_obj.private_key()
1919
20+
.. note:: These instructions are for Python 2.
21+
For Python 3, call ``encode()`` on ``cert_str`` to convert it
22+
into bytes before calling ``load_pem_x509_certificate``.
23+
24+
2025
I'm using Google App Engine and can't install `cryptography`, what can I do?
2126
----------------------------------------------------------------------------
2227

0 commit comments

Comments
 (0)