Hi ,
Thanks for reaching out to Microsoft Q&A.
This error typically occurs when the hostname being accessed does not match the hostname(s) listed in the SSL certificate's Subject Alternative Name (SAN) field.
- Verify that the certificate being used is correctly configured with the appropriate altnames. Ensure the hostname you’re connecting to is included in the certificate’s Subject Alternative Name
- If you’re using a private DNS zone, ensure that it’s correctly configured to resolve the hostname to the internal IP address.
- Ensure that firewalls, security groups, and network policies allow traffic to the specified hostname and port.
- Confirm that both the client and server support compatible TLS/SSL versions. Mismatched versions can cause certificate validation errors.
- If you’re using a proxy server, ensure that it’s correctly configured to handle requests to the specified hostname.
Please 'Upvote'(Thumbs-up) and 'Accept' as an answer if the reply was helpful. This will benefit other community members who face the same issue.