Google OpenID not working with OpenID plugin in WordPress

The OpenID plugin for WordPress does not seem to accept any of the links from the Google OpenID provider:

http://google.com/profiles/username

or

https://google.com/accounts/o8/id

It returns an error (for both):

Could not discover an OpenID
identity server endpoint 
at the url:
http://google.com/profiles/username

Any idea why? Janrain uses the plugin, but I can not use it because of other problems with this.

+3
source share
5 answers

The problem is resolved. Because Google, Yahoo, and some other OpenID providers provide https endpoints, curl tries to check the other end when executing a POST request, because curl does not come with a CA certificate package, it does not work on all such endpoints.

, curl, CA Google.

+4

CA . Google .

, Apache, . CA .

0

, php installtion

/etc/php.d/dom.ini, 
/etc/php.d/mysql.ini, 
/etc/php.d/mysqli.ini, 
/etc/php.d/pdo_sqlite.ini, 
/etc/php.d/wddx.ini, 
/etc/php.d/xmlreader.ini, 
/etc/php.d/xmlwriter.ini, 
/etc/php.d/xsl.ini, 
0

@Vanwaril @tarantinofan, - , .

, , , @Vanwaril, openid, , :

openid\lib\Auth\Yadis\ParanoidHTTPFetcher.php - 152

curl_setopt($c, CURLOPT_SSL_VERIFYPEER, false);

openid\liv\Auth\OpenID\consumer.php - 970 979 _idResCheckSignature, null, openid

, , , , .

EDIT: : https://web.archive.org/web/20090214215411/http://curl.haxx.se/docs/sslcerts.html

0

I was getting the same error and checking apache error logs. I got the following

CURL error (60): SSL certificate problem: unable to get local issuer certificate

This is caused by calls curlfrom the OpenID plugin.

The following worked for me. Source: fooobar.com/questions/91737 / ...

  • Use this root certificate certificate kit: https://curl.haxx.se/ca/cacert.pem

  • Copy this set of certificates to your disk. And use it onphp.ini

    curl.cainfo = "path_to_cert\cacert.pem"

Be sure to restart the server after making the changes.

0
source

Source: https://habr.com/ru/post/1785509/


All Articles