LearnatHome / google-api-python-client

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

oauth2client: bad recognition of PEM files #249

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
[Use this form for both apiclient and oauth2client issues]

What steps will reproduce the problem?
1. Use PyCrypto rather than PyOpenSSL.
2. Specify a p12 file generated by the Google API console.
3. Get an error message with a command that converts the p12 file to a PEM.
4. Use the created PEM.
5. Get the same message.

What is the expected output? What do you see instead?

The converted PEM file should be accepted.

What version of the product are you using? On what operating system?

Latest from PyPI (__version__ says "1.0"). Linux and Mac.

Please provide any additional information below.

The problem is that the check in oauth2client/crypt.py:233 demands that the 
file start with '-----BEGIN', while the file generated by the supplied command 
include a few lines of metadata before the '-----BEGIN' line. Removing these 
metadata lines solves the issue.

Original issue reported on code.google.com by ma...@google.com on 18 Mar 2013 at 9:30

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 186e2bb7794b.

Original comment by jcgregorio@google.com on 29 Oct 2013 at 8:03