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
HOSPITAL_MANAGEMENT_BASE_URL . HOSPITAL_M_OAUTH_TOKEN_URL: https://myhospitalnow.com/hospitals/oauth/token
[2023-02-25 08:08:11] production.INFO: HOSPITAL_MANAGEMENT_BASE_URL . HOSPITAL_M_OAUTH_TOKEN_URL: https://myhospitalnow.com/hospitals/oauth/token
[2023-02-25 08:08:11] production.INFO: HOSPITAL_M_GRANT_TYPE: client_credentials
[2023-02-25 08:08:11] production.ERROR: 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) {"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
wrong
HOSPITAL_MANAGEMENT_BASE_URL . HOSPITAL_M_OAUTH_TOKEN_URL: https://myhospitalnow.com/hospitals/oauth/token
Right
HOSPITAL_MANAGEMENT_BASE_URL . HOSPITAL_M_OAUTH_TOKEN_URL: https://www.myhospitalnow.com/hospitals/oauth/token
Top comments (0)