-
Notifications
You must be signed in to change notification settings - Fork 19
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
cURL error 60: SSL certificate problem: self signed certificate in certificate chain #1
Comments
Swish Handel has been down since late may for technical reasons, see https://www.getswish.se/content/uploads/2014/05/Kommunik%C3%A9_Driftstopp_Handel.pdf and https://www.getswish.se/operational-information/. Some information might only be available in Swedish unfortunately. I can look into your problem when the service is up & running again. |
I just tested this on php 7.1.1 on OSX and 5.5.37 on windows, both worked fine. Curl is compiled against openssl on both systems. Can you provide some more configuration details? Also, try running the tests. Put vendor/bin/codecept run --verbose --debug from the terminal. |
Getting same error using this docker image https://hub.docker.com/r/nimmis/apache-php5/. I've noticed problems using just curl in Ubuntu 16 towards Bankgirocentralen. Worked in ubuntu 14 with other version of libcurl with a POST (got a 201 back from API). This docker image is however ubuntu 14 so local libcurl is probably not the problem here. Can you confirm this problem using same image? I can confirm it works with curl in this image, but not with swish-php lib. curl
Trace using swish-php lib
|
@helmutschneider , do you have any idea on my last post? Can you confirm this issue? |
@helmutschneider My problem (self signed error) was solved by using the test url: $client = Client::make($rootCert, $clientCert, Client::SWISH_TEST_URL); // SWISH_TEST_URL was missing in my code before. |
I downloaded the test-keys from https://www.getswish.se/content/uploads/2015/06/Guide_Testverktyg_160118.zip
I extracted them from the p12 using extract.sh ..
Result was ca.crt and cl.pem.
My code looks like this:
This throws the following exception:
The text was updated successfully, but these errors were encountered: