I'm trying to configure HTTPS for my site on IIS 10.0. The site works perfectly on HTTP, but when I switch to HTTPS, I get an ERR_CONNECTION_RESET
error in Chrome.
Here are the steps I've taken so far:
Installed a Self-Signed certificate.
Added an HTTPS binding on port 443 in IIS.
Configured a web.config file to redirect HTTP to HTTPS
<configuration><system.webServer><rewrite><rules><rule name="HTTPS force" enabled="true" stopProcessing="true"><match url="(.*)" /><conditions><add input="{HTTPS}" pattern="^OFF$" /></conditions><action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="Permanent" /></rule></rules></rewrite></system.webServer></configuration>
Verified that port 443 is open and not blocked by the firewall.
Cleared browser cache and tried accessing the site in incognito mode.
Checked the IIS logs, which show status code 200 for HTTPS requests.
Despite these steps, I still get the
ERR_CONNECTION_RESET
error. How can I resolve this issue and successfully load my site over HTTPS?