SSL certificate common name is incorrect
Error:

Cause:
The host name of the Web API does not match with the host
name in the SSL server certificate. For example, if the server
certificate is a self-signed certificate which works for
“localhost” only, then you cannot use IP address or domain name in
the Web API URL; you can only use “localhost” in the Web API
URL.
Solution:
Make sure the host name of the Web API matches with the host
name in the server certificate.
In the local development environment, if a self-signed
certificate is used, you can change the Web API URL to use
“localhost” instead of IP address or domain name; or if you want
to use IP address or domain name, you can consider selecting the
Ignore PowerServer Certificate
option to ignore the error. For more, refer to Support HTTPS.
In the production environment, you should create a trusted
CA signed certificate (instead of using a self-signed
certificate).