main issue with The RemoteCertificateNameMismatch host name or ip you’re connecting to doesn’t match any subject or Subject Alternative Name (SAN) entries in the SSL certificate. for example ,
Certificate subject/SAN: CN=api.myserver.com
You connect to: https://192.168.1.10
there is Mismatch here
so maybe the solution will be Reissue or regenerate your certificate with proper SAN
openssl req -new -x509 -days 365 -nodes -out cert.pem -keyout key.pem \
-subj "/CN=myserver.local" \
-addext "subjectAltName=DNS:myserver.local,IP:192.168.1.10"