-
Notifications
You must be signed in to change notification settings - Fork 328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SSL certificate problem #27
Comments
The library already supports SSL certificates, so it appears like it can't recognize the SSL certificate at the final host.
|
I am having the same problem as well. The test request on www.mashape.com works but when I use it in a script it gives that fatal error. |
@CyberKronos To better understand the issue:
|
Added possibility to switch off SSL verify peer option using Unirest::verifyPeer #27
whom ever is facing this issue try this: \Unirest\Request::verifyPeer(false); |
the version I use unirest is 3.1.02, |
Hi there, trying to use this with the Mashape API, and get this lovely exception when trying to make a request to an API endpoint:
Fatal error: Uncaught exception 'Exception' with message 'SSL certificate problem: self signed certificate in certificate chain' in C:*_\unirest\lib\Unirest\Unirest.php:166 Stack trace: #0 C:*_\unirest\lib\Unirest\Unirest.php(47): Unirest::request('GET', 'https://yoda.p....', NULL, Array, NULL, NULL) #1 C:*_\yoda.php(9): Unirest::get('https://yoda.p....', Array, NULL) #2 {main} thrown in C:*_**\unirest\lib\Unirest\Unirest.php on line 166
The text was updated successfully, but these errors were encountered: