From 84a7d153ff2dfd702acd5f46729124388ed79251 Mon Sep 17 00:00:00 2001 From: "Sybren A. St?vel" 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(+) 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