Home › Forums › Extensions › Office 365 › Fatal Error after granting persmission to O365
- This topic has 8 replies, 2 voices, and was last updated 3 years, 10 months ago by Tim.
-
AuthorPosts
-
February 14, 2021 at 11:05 pm #60207Ray BaileyParticipant
Sorry, I posted this a WP.com first. I have configured the API and after I go through he steps to Grant Office 365 Permissions I get the following error:
Fatal error: Uncaught Exception: cURL error 60: SSL certificate problem: unable to get local issuer certificate (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)
in E:\Websites\StreetToFreedom\wp-content\plugins\post-smtp-extension-office365\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php on line 186Call stack:
GuzzleHttp\H\CurlFactory::createRejection()
wp-content/plugins/post-smtp-extension-office365/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:149
GuzzleHttp\H\CurlFactory::finishError()
wp-content/plugins/post-smtp-extension-office365/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:102
GuzzleHttp\H\CurlFactory::finish()
wp-content/plugins/post-smtp-extension-office365/vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php:43
GuzzleHttp\H\CurlHandler::__invoke()
wp-content/plugins/post-smtp-extension-office365/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php:28
GuzzleHttp\H\Proxy::GuzzleHttp\H\{closure}()
wp-content/plugins/post-smtp-extension-office365/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php:51
GuzzleHttp\H\Proxy::GuzzleHttp\H\{closure}()
wp-content/plugins/post-smtp-extension-office365/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php:66
GuzzleHttp\PrepareBodyMiddleware::__invoke()
wp-content/plugins/post-smtp-extension-office365/vendor/guzzlehttp/guzzle/src/Middleware.php:30
GuzzleHttp\Middleware::GuzzleHttp\{closure}()
wp-content/plugins/post-smtp-extension-office365/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php:70
GuzzleHttp\RedirectMiddleware::__invoke()
wp-content/plugins/post-smtp-extension-office365/vendor/guzzlehttp/guzzle/src/Middleware.php:60
GuzzleHttp\Middleware::GuzzleHttp\{closure}()
wp-content/plugins/post-smtp-extension-office365/vendor/guzzlehttp/guzzle/src/HandlerStack.php:67
GuzzleHttp\HandlerStack::__invoke()
wp-content/plugins/post-smtp-extension-office365/vendor/guzzlehttp/guzzle/src/Client.php:277
GuzzleHttp\Client::transfer()
wp-content/plugins/post-smtp-extension-office365/vendor/guzzlehttp/guzzle/src/Client.php:99
GuzzleHttp\Client::sendAsync()
wp-content/plugins/post-smtp-extension-office365/vendor/guzzlehttp/guzzle/src/Client.php:106
GuzzleHttp\Client::send()
wp-content/plugins/post-smtp-extension-office365/vendor/league/oauth2-client/src/Provider/AbstractProvider.php:608
League\O\C\P\AbstractProvider::getResponse()
wp-content/plugins/post-smtp-extension-office365/vendor/league/oauth2-client/src/Provider/AbstractProvider.php:621
League\O\C\P\AbstractProvider::getParsedResponse()
wp-content/plugins/post-smtp-extension-office365/vendor/league/oauth2-client/src/Provider/AbstractProvider.php:537
League\O\C\P\AbstractProvider::getAccessToken()
wp-content/plugins/post-smtp-extension-office365/plugin.php:85
Post_Smtp_Office365::handle_oauth()
wp-includes/class-wp-hook.php:287
WP_Hook::apply_filters()
wp-includes/class-wp-hook.php:311
WP_Hook::do_action()
wp-includes/plugin.php:484
do_action()
wp-content/plugins/post-smtp/Postman/PostmanAdminController.php:133
PostmanAdminController::__construct()
wp-content/plugins/post-smtp/Postman/Postman.php:280
Postman::setup_admin()
wp-content/plugins/post-smtp/Postman/Postman.php:206
Postman::on_plugins_loaded()
wp-includes/class-wp-hook.php:287
WP_Hook::apply_filters()
wp-includes/class-wp-hook.php:311
WP_Hook::do_action()
wp-includes/plugin.php:484
do_action()
wp-settings.php:420
require_once()
wp-config.php:92
require_once()
wp-load.php:37
require_once()
wp-admin/admin.php:34
require_once()
wp-admin/index.php:10February 14, 2021 at 11:15 pm #60219TimModeratorHi Ray,
There is a problem with your hosting server, please contact your provider and ask them to check the servers certificate. cURL is making a certificate check and failing.
Kind Regards,
TimFebruary 14, 2021 at 11:45 pm #60228Ray BaileyParticipantI host my own server. What do I need to look at? It is hosted on a Windows 2016 and IIS. It has a valid cert issued by CertifyTheWeb.
February 15, 2021 at 12:01 am #60231TimModeratorHi Ray,
I had this with a user the other week. I actually asked the developer Yehuda about it, as he is more clued up on that than me.
The specific error that you got, looking at the docs relates to:
The remote server's SSL certificate or SSH md5 fingerprint was deemed not OK. This error code has been unified with CURLE_SSL_CACERT since 7.62.0. Its previous value was 51.
This is a different certificate than your public HTTPS certificate from CertifyTheWeb.
In some cases, it may be that you are missing a CA certificate installed on your server – so installing/re-installing that might help.
If you could also share your site’s URL with us that’d be great. If you want to keep this private, you can mark the reply as ‘private’ and it is only visible to myself, you, and the developer/creator Yehuda.
Thanks.
Kind Regards,
TimFebruary 15, 2021 at 12:02 am #60237TimModeratorThis might be helpful too: https://shouts.dev/php-curl-error-code-60-ssl-certificate-problem-solved
February 15, 2021 at 12:09 am #60243Ray BaileyParticipantFebruary 15, 2021 at 12:12 am #60246TimModeratorHi Ray,
Thanks for confirming this issue is resolved. Could I ask what you did to fix the problem? Any information you provide could be massively valuable and helpful to others in the future too.
Site is looking good already, thanks for sharing! 🙂
Kind Regards,
TimFebruary 15, 2021 at 1:05 am #60256Ray BaileyParticipantI put the file downloaded from https://curl.haxx.se/ca/cacert.pem into C:\Program Files\PHP\v7.2\extras\ssl and edited the php.ini file and put curl.cainfo = C:\Program Files\PHP\v7.2\extras\ssl\cacert.pem
You then need to run iisreset from an elevated command prompt.
February 15, 2021 at 12:38 pm #60342TimModeratorThanks for feeding back Ray, that’s helpful!
Kind Regards,
Tim -
AuthorPosts
- You must be logged in to reply to this topic.