You need to sign in to do that
Don't have an account?
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.