SSL Cert error when invoking sfc_remote from localhost
-
Hi Samuel (and others),
I’m using SFCv1.4 and testing my code locally on WAMPServer (windows 7 laptop)
I’m making an SFC Login call which triggers sfc_login_check in sfc-login.php. After authenticating with FB, I’m looking to get the email address associated with the FB account, to then check if the user has already registered on my WP site.
Here’s what I’m seeing while stepping through the code in debug mode:
1. sfc_login_check invokes sfc_remote
2. after triggering the line with wp_remote_get (“https://graph.facebook.com/oauth/access_token?client_id={$options[‘appid’]}&redirect_uri=&client_secret={$options[‘app_secret’]}&code={$args[‘code’]}”);
I get this error in the debugger:
SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failedWhen I issue that same request through a browser, I get an access token in the response. However, feeding this access token directly into the next wp_remote_get ($url, $args) invocation gives me an OAuth error.
Any ideas on what I can do to work around this? Thanks in advance.
Kevin
The topic ‘SSL Cert error when invoking sfc_remote from localhost’ is closed to new replies.