SSL Error: no alternative certificate subject name matches target host name
Limited Time Offer!
For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!
Error
ERROR: cURL error 51: SSL: no alternative certificate subject name matches target host name ‘www.myhospitalnow.com’ (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) {“exception”:”[object] (GuzzleHttp\\Exception\\RequestException(code: 0): cURL error 51: SSL: no alternative certificate subject name matches target host name ‘myhospitalnow.com’ (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) at /opt/lampp/htdocs/myhospitalnow/mhn-admin-ms/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:201
Solution
go to .env file and check this
wrong
This is right
only mistake www.