My web server (which only hosts for intranet sites) has two certificates. One is a wildcard cert for subdomains, and the other is the server's cert which is used for internal like tools.
- Wildcard Cert:
*.internal.domain.com - Server Cert:
server.internal.domain.com
I just recently added our first https only site to the server using the wildcard cert. It had to use a different port: 8443, because of the Server Cert is bound to 443.
When navigating to the https://mysite.internal.domain.com/ the site fails to load throwing a security warning: NET::ERR_CERT_COMMON_NAME_INVALID. To me this seems expected, as the browser is trying to use the 443 port and the Server Cert.
The site works fine if you navigate to https://mysite.internal.domain.com:8443.
I tried to write a rewrite rule that would take any request and rewrite it to the 8443 port as a test but it doesn't seem to work:
<rewrite>
<rules>
<rule name="To 8443" patternSyntax="Wildcard">
<match url="*" />
<action type="Rewrite"
url="https://mysite.internal.domain.com:8443/{R:0}"
appendQueryString="false" />
</rule>
</rules>
</rewrite>
I'm still getting the NET::ERR_CERT_COMMON_NAME_INVALID errors when navigating to the site.
Anyone know how I can have a user request https://mysite.internal.domain.com and redirect to https://mysite.internal.domain.com:8443?