function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
BenabusBenabus 

No subject alternative DNS name matching found.

I'm trying to make a simple request to an https page.  It's registered in the remote sites area.  The domain (treatytime.com) has a wildcard ssl certificate, so in theory, it and all subdomains would use that certificate.  I keep getting this error, though:

 

java.security.cert.CertificateException: No subject alternative DNS name matching bserrette.treatytime.com found.


At this point, I'm not doing anything fancy.  Just trying to return a string to get thingsn connected.  From my reading, this error shows up when you're trying to access the site through a different name, like an IP address or something, but that's not the case here.

 

This is my code:

 

       

HttpRequest req = new HttpRequest();
req.setMethod('POST');
req.setEndpoint('https://bserrette.treatytime.com');
Http http = new Http();
HTTPResponse res = http.send(req);
return res.getBody();

 

 

Any help would be greatly appreciated.

VidulaVidula
We are facing the same issue. Our domain has SSL certificate issued by GoDaddy. We would also like to know a solution for this issue.