The certificate was not issued for the hostname being connected to. The Subject Alternative Names do not include the server hostname.
X509_V_ERR_HOSTNAME_MISMATCH
openssl The certificate was not issued for the hostname being connected to. The Subject Alternative Names do not include the server hostname.