Getting “Unable to parse the p12 file…” Error With google-api-php-client

前端 未结 6 1916
忘了有多久
忘了有多久 2020-12-20 15:02

I\'ve been searching for days and trying new and older version of google-api-php-client along with various other examples out there, but I can\'t seem to get around this err

6条回答
  •  被撕碎了的回忆
    2020-12-20 15:27

    Got it! This commit got me thinking that maybe openssl didn't like our file either. I converted my file from a p12 to a pem using these instructions. Then I edited the file to remove some text before the "-----BEGIN RSA PRIVATE KEY-----" so the code from the new commit would recognize it properly. Dropped that file in and got results like magic.

    That was it! I'm still not sure what would cause the auto-generated p12 file to not cooperate, so let me know if anyone has any ideas.

提交回复
热议问题