From 7cf95f471d1970ccfceac40c10ecc49fb10503e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Sat, 22 Feb 2014 11:21:45 +0100 Subject: Added a bit about PKCS#8 --- doc/compatibility.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'doc') diff --git a/doc/compatibility.rst b/doc/compatibility.rst index 7d8b10f..e6b59a3 100644 --- a/doc/compatibility.rst +++ b/doc/compatibility.rst @@ -49,3 +49,14 @@ Encryption and decryption is also compatible:: $ openssl rsautl -in testfile.rsa -inkey privatekey.pem -decrypt hello there +Interoperability with PKCS#8 +-------------------------------------------------- + +The standard PKCS#8 is widely used, and more complex than the PKCS#1 +v1.5 supported by Python-RSA. In order to extract a key from the +PKCS#8 format you need an external tool such as OpenSSL:: + + openssl rsa -in privatekey-pkcs8.pem -out privatekey.pem + +You can then extract the corresponding public key as described above. + -- cgit v1.2.1