I've a question regarding a certificate validation error I'm getting. I'm performing an https request from one machine to another (windows machines). On the destination machine I've configured a self-signed ssl certificate for the webapp. On the the machine that is performing the request i've installed the root certificate (which was used to sign the self-signed one I installed in the other machine) in the trusted root certificate store.
The source app performs the request to that webapp hosted on the destination machine, by domain name, but its domain name is not registed with a dns server. It's simply configured locally in the hosts file of the OS. Basically it's a local dns.
But when I perform the web request, I get certificate validation errors (could not establish ssl trust). If I try to perform the request from the browser, I get the same error. But if I investigate the certificate and certificate chain, I can find all certificates are ok (both the SSL certificate used, and up the certificate chain, the root one). But I still get the validation error.
Could the fact that I'm using a local dns (via that local hosts file) be the reason for this? Thank you.