bunq / sdk_php

PHP SDK for bunq API
MIT License
84 stars 54 forks source link

public.api.bunq.com is using wrong certificate #11

Closed LauLaman closed 7 years ago

LauLaman commented 7 years ago

when trying to run vendor/bin/bunq-install i encountered the following error:

An unexpected error occurred: cURL error 51: SSL: no alternative certificate subject name 
matches target host name 'public.api.bunq.com' 
(see http://curl.haxx.se/libcurl/c/libcurl-errors.html)

so i checked the url public.api.bunq.com using my browser. The server is returning the certificate for the sandbox environment:

screen shot 2017-08-03 at 17 44 45

Ps. when in need of a new certificate checkout https://letsencrypt.org/

dnl-blkv commented 7 years ago

@LauLaman Thank you for the issue! We are well-aware of Letsencrypt. The real problem, however, is in the wrong URL accidentally put to the ApiContext :)

The URL of our Production API is not https://public.api.bunq.com/ and never was so. It is https://api.bunq.com.

LauLaman commented 7 years ago

i see.

i've changed this line. i got one step further. Now stumbling on #10...

OGKevin commented 7 years ago

Fix applied in 2d37046.

Closing the issue, feel free to reopen if it is still not working 👍