Viewing 10 replies - 1 through 10 (of 10 total)
  • I have got the same error.. Please help me too…

    Thread Starter felixwei

    (@felixwei)

    Finally, got it. Just make sure your hosting support SSL.

    Does this mean, I have to purchase a SSL certificate for the Domain Name?

    HgtuRgg

    (@kalyanbratadas)

    Katlyan) That solution doesn’t work it just produces another error

    “An error occurred: Error refreshing the OAuth2 token, message: ‘{ “error” : “invalid_grant” }’

    I had the same issue. I implemented Kalyans fix by naming my key file with the private key appended with privatekey like so:
    xxxxxxxxxxxxxx-privatekey.p12

    And then I got another error: Unable to sign data. So at least the script was running through all the functions in the Google_P12Signer.php file. I found an answer here and copied and pasted the last 2 functions in that file and now it works. This will be a problem for updating the plugin tho because you should never hack core files like this because of security vulnerabilities that could be opened up. So now this is working locally. I have yet to move it to a production server and test.

    Glad you got it working on local server. Would be great if they Author would just check now and then

    I am emailing him to see if he can adjust the code. Musictomy, did you try my fix? If so, did this work for you?

    I haven’t tried what you mentioned, tbh don’t really want to mess with this sort of code as it’s my storage on the line here, would rather look into other more reliable secure options.

    Hi ,

    I just installed the google drive plugin and after generating the private key, and client id getting error during creation of the folder as below :-

    Google Drive WP Media

    Fatal error: Uncaught exception ‘Google_AuthException’ with message ‘Unable to parse the p12 file. Is this a .p12 file? Is the password correct? OpenSSL error: error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag’ in /var/www/html/wordpress/wp-content/plugins/google-drive-wp-media/gdwpm-api/auth/Google_P12Signer.php:39 Stack trace: #0 /var/www/html/wordpress/wp-content/plugins/google-drive-wp-media/gdwpm-api/auth/Google_AssertionCredentials.php(97): Google_P12Signer->__construct(‘?? ?? <!DOCT…’, ‘notasecret’) #1 /var/www/html/wordpress/wp-content/plugins/google-drive-wp-media/gdwpm-api/auth/Google_AssertionCredentials.php(80): Google_AssertionCredentials->makeSignedJwt(Array) #2 /var/www/html/wordpress/wp-content/plugins/google-drive-wp-media/gdwpm-api/auth/Google_OAuth2.php(264): Google_AssertionCredentials->generateAssertion() #3 /var/www/html/wordpress/wp-content/plugins/google-drive-wp-media/gdwpm-api/auth/Google_OAuth2.php(218): Google_OAuth2->refreshTokenWithAssertion() #4 /var/www/html/wordpress/ in /var/www/html/wordpress/wp-content/plugins/google-drive-wp-media/gdwpm-api/auth/Google_P12Signer.php on line 39

    I tried suggested above solution but it didn’t worked for me.

    Can anyone help me out in this ??

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘OpenSSL error’ is closed to new replies.