I have two domains: source.domain.com (https://source.domain.com) and target.domain.com. Both have valid TLS certificates, issued and signed by public CA (GlobalSign RSA OV SSL CA 2018), with complete (verified) chain.
source.domain.com and target.domain.comare on different IPs.
When I run the below code from the source.domain.com server, an error occurs: Hostname/IP does not match certificate's altnames: Host: target.domain.com. is not in the cert's altnames: DNS:source.domain.com.
Actual behavior
ERROR: Hostname/IP does not match certificate's altnames: Host: target.domain.com. is not in the cert's altnames: DNS:source.domain.com
Describe the bug
source.domain.com
(https://source.domain.com
) andtarget.domain.com
. Both have valid TLS certificates, issued and signed by public CA (GlobalSign RSA OV SSL CA 2018), with complete (verified) chain.source.domain.com
andtarget.domain.com
are on different IPs.When I run the below code from the
source.domain.com
server, an error occurs:Hostname/IP does not match certificate's altnames: Host: target.domain.com. is not in the cert's altnames: DNS:source.domain.com.
Actual behavior
ERROR: Hostname/IP does not match certificate's altnames: Host: target.domain.com. is not in the cert's altnames: DNS:source.domain.com
Expected behavior
No TLS issues ...
Code to reproduce
Checklist