manniru / google-api-python-client

Automatically exported from code.google.com/p/google-api-python-client
Other
0 stars 0 forks source link

Improve documentation for pkcs12 conversion to pem file. #291

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The pkcs12 conversion command specified in the help does not work until we 
remove the first 4 lines of the newly created .pem file.  Please update the 
documentation as so.

From what I can see, we need to convert the key using the following commands:

openssl pkcs12 -in 7bcf271e1a8e91a9e779e2d93ca22c15f9a2de5b-privatekey.p12 
-nodes -nocerts > privatekey.pem

And the 1st four lines in the pem file is:

Bag Attributes
    friendlyName: privatekey
    localKeyID: 54 69 6D 65 20 31 33 37 34 31 37 38 31 30 39 37 31 31
Key Attributes: <No Attributes>

Which needs to be deleted until the file begins with the following line:

-----BEGIN PRIVATE KEY-----

Original issue reported on code.google.com by hen...@google.com on 19 Jul 2013 at 11:41