SSL Error: no alternative certificate subject name matches target

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

Check certificates is generated using www.myhospitalnow.com or myhospitalnow.com and check SSL apache configuration file for the same.