# SSL not working on various modern browsers (Fine on others)

**URL:** <https://community.letsencrypt.org/t/ssl-not-working-on-various-modern-browsers-fine-on-others/173396>\
**Category:** Help\
**Created:** [March 7, 2022, 5:11pm UTC](https://community.letsencrypt.org/t/ssl-not-working-on-various-modern-browsers-fine-on-others/173396 "2022-03-07T17:11:06Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![IYAM](https://avatars.discourse-cdn.com/v4/letter/i/b9e5f3/32.png) [@IYAM](https://community.letsencrypt.org/u/IYAM)\
**Post date:** [March 7, 2022, 5:11pm UTC](https://community.letsencrypt.org/t/ssl-not-working-on-various-modern-browsers-fine-on-others/173396/1 "2022-03-07T17:11:07Z")

</div>

I've installed the free certificate on the Windows 2012 server I look after for the domain listed below. The site is one simple page that at the moment just contains a pre-registration form noted by type form.

The site appears as secure and the padlock appears on Mac: Latest Chrome, Firefox & Safari  
It does not appear as secure on

Latest iOS Mobile Safari, Latest PC Edge or Chrome

My domain is: [www.iyameducation.com](http://www.iyameducation.com)

It produced this output: On the effected browser the page appear blank because TypeForm does not show on insecure sites. The address bar also shows Not Secure on these sites but Secure on the working browsers.

Any help would be greatly appreciated. Thanks

My web server is (include version): Windows Server 2012

The operating system my web server runs on is (include version):Windows Server 2012

My hosting provider, if applicable, is: Hetzner

I can login to a root shell on my machine (yes or no, or I don't know):Yes

---

<div class="post-metadata">

**Author:** ![9peppe](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/9peppe/32/31596_2.png) [@9peppe](https://community.letsencrypt.org/u/9peppe)\
**Post date:** [March 7, 2022, 5:34pm UTC](https://community.letsencrypt.org/t/ssl-not-working-on-various-modern-browsers-fine-on-others/173396/2 "2022-03-07T17:34:21Z")

</div>

I see your website fine if I manually go on httpS. (Chrome 99 on Android 11)

You should add a redirect from http to https.

---

<div class="post-metadata">

**Author:** ![jvanasco](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/jvanasco/32/55900_2.png) [@jvanasco](https://community.letsencrypt.org/u/jvanasco)\
**Post date:** [March 7, 2022, 5:41pm UTC](https://community.letsencrypt.org/t/ssl-not-working-on-various-modern-browsers-fine-on-others/173396/3 "2022-03-07T17:41:57Z")

</div>

> [@9peppe](#):
>
> You should add a redirect from http to https.

The problem is probably because the affected browser/os combos are loading the http site, and the working browser/os combos are loading the httpS version. That can happen due to browser setting or bookmark/history. The redirect suggested by @9peppe will fix both scenarios.

---

<div class="post-metadata">

**Author:** ![9peppe](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/9peppe/32/31596_2.png) [@9peppe](https://community.letsencrypt.org/u/9peppe)\
**Post date:** [March 7, 2022, 5:47pm UTC](https://community.letsencrypt.org/t/ssl-not-working-on-various-modern-browsers-fine-on-others/173396/4 "2022-03-07T17:47:04Z")

</div>

Indeed.

What I don't know is how to make such a redirect on IIS 8.5 (or any IIS, for that matter).

---

<div class="post-metadata">

**Author:** ![MikeMcQ](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/mikemcq/32/52772_2.png) [@MikeMcQ](https://community.letsencrypt.org/u/MikeMcQ)\
**Post date:** [March 7, 2022, 6:16pm UTC](https://community.letsencrypt.org/t/ssl-not-working-on-various-modern-browsers-fine-on-others/173396/5 "2022-03-07T18:16:43Z")

</div>

Also note that server sends the "short chain" so will not be supported on older Android devices (pre 7.1) or other systems that do not have `ISRG Root X1` in the trust store.

The post did not mention needing to support older devices so perhaps this is not a problem. I just thought it worth mentioning since it is questioning browser support.

Maybe see below topics if the HTTPS url is the one that is failing. But, I agree you should ensure they are not using an HTTP url first.

> [@So.. It's impossible to support Android 7 and older on IIS? (In a non-hacky way?)](https://community.letsencrypt.org/t/so-its-impossible-to-support-android-7-and-older-on-iis-in-a-non-hacky-way/163912):
>
> W…

> [@Long (default) and Short (alternate) Certificate Chains Explained](https://community.letsencrypt.org/t/long-default-and-short-alternate-certificate-chains-explained/162526):
>
> I…

---

<div class="post-metadata">

**Author:** ![IYAM](https://avatars.discourse-cdn.com/v4/letter/i/b9e5f3/32.png) [@IYAM](https://community.letsencrypt.org/u/IYAM)\
**Post date:** [March 8, 2022, 8:49am UTC](https://community.letsencrypt.org/t/ssl-not-working-on-various-modern-browsers-fine-on-others/173396/6 "2022-03-08T08:49:10Z")

</div>

Thanks for the feedback. I would have sworn in my test I was actually typing the full URL including the HTTPS:// and getting the issue but this morning after trying it it all works fine. Guess I must just be mis-remembering?

Thanks again  
Chris

---

<div class="post-metadata">

**Author:** ![webprofusion](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/webprofusion/32/85310_2.png) [@webprofusion](https://community.letsencrypt.org/u/webprofusion)\
**Post date:** [March 8, 2022, 8:55am UTC](https://community.letsencrypt.org/t/ssl-not-working-on-various-modern-browsers-fine-on-others/173396/7 "2022-03-08T08:55:43Z")

</div>

To automatically rewrite http URLs to https on IIS, install the URL Rewrite module (may already be installed) [URL Rewrite : The Official Microsoft IIS Site](https://www.iis.net/downloads/microsoft/url-rewrite)

Then in your web.config for the specific site, configure a URL rewrite rule, such as the `rewrite` section of the following:

```xml
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>

    <rewrite>
      <rules>
        <rule name="HTTP to HTTPS redirect" stopProcessing="true">
          <match url="(.*)" />
          <conditions>
            <add input="{HTTPS}" pattern="off" ignoreCase="true" />
          </conditions>
          <action type="Redirect" redirectType="Found" url="https://{HTTP_HOST}/{R:1}" />
        </rule>
      </rules>
    </rewrite>
      
  </system.webServer> 
</configuration>

```

Se also: [Using the URL Rewrite Module | Microsoft Docs](https://docs.microsoft.com/en-us/iis/extensions/url-rewrite-module/using-the-url-rewrite-module)

---

<div class="post-metadata">

**Author:** ![IYAM](https://avatars.discourse-cdn.com/v4/letter/i/b9e5f3/32.png) [@IYAM](https://community.letsencrypt.org/u/IYAM)\
**Post date:** [March 8, 2022, 9:38am UTC](https://community.letsencrypt.org/t/ssl-not-working-on-various-modern-browsers-fine-on-others/173396/8 "2022-03-08T09:38:48Z")

</div>

Thanks for that. I've copy and pasted into web.config and restarted the site but I'm still getting the same issue. (no errors just showing as not secure still) Are there any other issues I'd need to check for thisredirect to work?

---

<div class="post-metadata">

**Author:** ![rg305](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/rg305/32/91314_2.png) [@rg305](https://community.letsencrypt.org/u/rg305)\
**Post date:** [March 8, 2022, 9:57am UTC](https://community.letsencrypt.org/t/ssl-not-working-on-various-modern-browsers-fine-on-others/173396/9 "2022-03-08T09:57:48Z")

</div>

Are you sure that you placed that file in the correct folder?

```nohighlight
curl -Ii http://iyameducation.com/
HTTP/1.1 200 OK
Cache-Control: private
Content-Length: 580
Content-Type: text/html
Server: Microsoft-IIS/8.5
Set-Cookie: ASPSESSIONIDSCABQCQR=NEDPNLIDEEFOFJKDAAEIAFBG; path=/
X-Powered-By: ASP.NET
Date: Tue, 08 Mar 2022 09:56:22 GMT

curl -Ii http://www.iyameducation.com/
HTTP/1.1 200 OK
Cache-Control: private
Content-Length: 580
Content-Type: text/html
Server: Microsoft-IIS/8.5
Set-Cookie: ASPSESSIONIDSCABQCQR=OEDPNLIDDOBGPCLJODGOJAFF; path=/
X-Powered-By: ASP.NET
Date: Tue, 08 Mar 2022 09:56:34 GMT

```

No redirection is being provided.

---

<div class="post-metadata">

**Author:** ![IYAM](https://avatars.discourse-cdn.com/v4/letter/i/b9e5f3/32.png) [@IYAM](https://community.letsencrypt.org/u/IYAM)\
**Post date:** [March 8, 2022, 10:28am UTC](https://community.letsencrypt.org/t/ssl-not-working-on-various-modern-browsers-fine-on-others/173396/10 "2022-03-08T10:28:04Z")

</div>

Thanks for the continued help. The site is about as simple as it can get. There is the default page and the web.config file with in the same directory. I've uploaded screen shots of all the key screens.

 ![files](https://global.discourse-cdn.com/letsencrypt/original/3X/b/5/b59e4b213b6813542942e790169c6b9e90271715.jpeg)

---

<div class="post-metadata">

**Author:** ![rg305](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/rg305/32/91314_2.png) [@rg305](https://community.letsencrypt.org/u/rg305)\
**Post date:** [March 8, 2022, 10:32am UTC](https://community.letsencrypt.org/t/ssl-not-working-on-various-modern-browsers-fine-on-others/173396/11 "2022-03-08T10:32:16Z")

</div>

I can assure you that the redirection is not being served:

```nohighlight
curl -Ii http://iyameducation.com/default.asp
HTTP/1.1 200 OK
Cache-Control: private
Content-Length: 580
Content-Type: text/html
Server: Microsoft-IIS/8.5
Set-Cookie: ASPSESSIONIDQCAATDRQ=GADHBIJDDNDLLLPPHCCEEHKF; path=/
X-Powered-By: ASP.NET
Date: Tue, 08 Mar 2022 10:31:05 GMT

curl -Ii http://www.iyameducation.com/default.asp
HTTP/1.1 200 OK
Cache-Control: private
Content-Length: 580
Content-Type: text/html
Server: Microsoft-IIS/8.5
Set-Cookie: ASPSESSIONIDQCAATDRQ=HADHBIJDHAPDLOHCEOHMJGKN; path=/
X-Powered-By: ASP.NET
Date: Tue, 08 Mar 2022 10:31:12 GMT

```

---

<div class="post-metadata">

**Author:** ![IYAM](https://avatars.discourse-cdn.com/v4/letter/i/b9e5f3/32.png) [@IYAM](https://community.letsencrypt.org/u/IYAM)\
**Post date:** [March 8, 2022, 10:44am UTC](https://community.letsencrypt.org/t/ssl-not-working-on-various-modern-browsers-fine-on-others/173396/12 "2022-03-08T10:44:55Z")

</div>

Sorry I wasn't doubting you at all, just supplied the above incase it cast any light on why it wouldn't be. I can't currently see what I have missed. I know the web.config I've pasted the rules into is the correct one because I can break it and get an error in the browser.

This is the web.config as it stands

```nohighlight
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>

    <rewrite>
      <rules>
        <rule name="HTTP to HTTPS redirect" stopProcessing="true">
          <match url="(.*)" />
          <conditions>
            <add input="{HTTPS}" pattern="off" ignoreCase="true" />
          </conditions>
          <action type="Redirect" redirectType="Found" url="https://{HTTP_HOST}/{R:1}" />
        </rule>
      </rules>
    </rewrite>
      
  </system.webServer> 
</configuration>

```

---

<div class="post-metadata">

**Author:** ![webprofusion](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/webprofusion/32/85310_2.png) [@webprofusion](https://community.letsencrypt.org/u/webprofusion)\
**Post date:** [March 8, 2022, 11:18am UTC](https://community.letsencrypt.org/t/ssl-not-working-on-various-modern-browsers-fine-on-others/173396/13 "2022-03-08T11:18:56Z")

</div>

> [@rg305](#):
>
> `http://www.iyameducation.com/default.asp`

Interesting, is this classic ASP? I actually don't know if web.config url rewrite works with classic ASP, as there's a chance the [asp.net](http://asp.net) handlers may not be installed on that site.

---

<div class="post-metadata">

**Author:** ![IYAM](https://avatars.discourse-cdn.com/v4/letter/i/b9e5f3/32.png) [@IYAM](https://community.letsencrypt.org/u/IYAM)\
**Post date:** [March 8, 2022, 11:32am UTC](https://community.letsencrypt.org/t/ssl-not-working-on-various-modern-browsers-fine-on-others/173396/14 "2022-03-08T11:32:50Z")

</div>

The asp file is a red herring.It can just be a html file (there is no code just html in it)

The web.config is definitely being called because I can introduce errors into it and I can the usual web.config error message when you hit the site.

Chris

---

<div class="post-metadata">

**Author:** ![rg305](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/rg305/32/91314_2.png) [@rg305](https://community.letsencrypt.org/u/rg305)\
**Post date:** [March 8, 2022, 11:54am UTC](https://community.letsencrypt.org/t/ssl-not-working-on-various-modern-browsers-fine-on-others/173396/15 "2022-03-08T11:54:31Z")

</div>

I'm not a fan of `IIS`.  
I'm less a fan of putting `nginx` on `Windows`.  
And even less with `Apache` on `Windows`...

But, since you are running `Windows Server 2012`, maybe there is a way to use `Hyper-V` to run `nginx` on `Linux` and put `IIS` entirely "behind" that.

---

<div class="post-metadata">

**Author:** ![IYAM](https://avatars.discourse-cdn.com/v4/letter/i/b9e5f3/32.png) [@IYAM](https://community.letsencrypt.org/u/IYAM)\
**Post date:** [March 8, 2022, 2:58pm UTC](https://community.letsencrypt.org/t/ssl-not-working-on-various-modern-browsers-fine-on-others/173396/16 "2022-03-08T14:58:51Z")

</div>

The 'Test' button works ok on the URL section but when I used the 'Test' button on the conditions rule I get this.

 ![Screenshot 2022-03-08 at 14.57.05](https://global.discourse-cdn.com/letsencrypt/original/3X/8/6/863ad8aef495eb38aea3dbe9e65d6d616c27e511.png)

---

<div class="post-metadata">

**Author:** ![webprofusion](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/webprofusion/32/85310_2.png) [@webprofusion](https://community.letsencrypt.org/u/webprofusion)\
**Post date:** [March 9, 2022, 1:43am UTC](https://community.letsencrypt.org/t/ssl-not-working-on-various-modern-browsers-fine-on-others/173396/17 "2022-03-09T01:43:58Z")

</div>

The {HTTPS} server variable is given a value of either ON or OFF, so your test would be either of those values (in upper or lower case). The rules says if _HTTPS_ is `off` then redirect to the original url with `https://` instead of `http://`

Note as an aside:

- The https pattern is a regular expression so technically it should be `^OFF$` but just using `off` works ok for me. Maybe try the regex version instead? **Also do a restart if you haven't done one recently.** you might get away with just restarting IIS but either way this URL rewrite module needs to be loaded by IIS.
- The example redirect pattern `https://{HTTP_HOST}/{R:1}` would redirect `http://anything.microsoft.com` to `https://anything.microsoft.com` so you need both http and https bindings for all your site name combinations for that to work. Personally I also like to force requests to a canonical url e.g. `https://microsoft.com/{R:1}` would redirect `http://anything.microsoft.com/test.aspx` to `https://microsoft.com/test.aspx`

---

<div class="post-metadata">

**Author:** ![rg305](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/rg305/32/91314_2.png) [@rg305](https://community.letsencrypt.org/u/rg305)\
**Post date:** [March 9, 2022, 3:09am UTC](https://community.letsencrypt.org/t/ssl-not-working-on-various-modern-browsers-fine-on-others/173396/18 "2022-03-09T03:09:30Z")

</div>

It seems more like that zoomed-in section is being taken completely out of context.

@IYAM  
Please zoom out and show more/all of that page.  
Normally "regex" patterns tests are to check the matching on the data provided just above it.  
[NOT an ON or OFF selector switch]  
In your post we can see that "`off`" doesn't match "`www.iyameducation.com`" via the result:  
"`The input data to test does not match the pattern`"  
But we have no idea who/what/when/where/why that data is being used.

---

<div class="post-metadata">

**Author:** ![rg305](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/rg305/32/91314_2.png) [@rg305](https://community.letsencrypt.org/u/rg305)\
**Post date:** [March 9, 2022, 3:17am UTC](https://community.letsencrypt.org/t/ssl-not-working-on-various-modern-browsers-fine-on-others/173396/19 "2022-03-09T03:17:38Z")

</div>

Here are two "regex" examples that match only when the email address is @ an IP.

This one matches:  
 ![image](https://global.discourse-cdn.com/letsencrypt/original/3X/0/2/024ddba42d1775f3fa78f03eaa3ba7af16cd63fb.png)

This one doesn't match:  
 ![image](https://global.discourse-cdn.com/letsencrypt/original/3X/e/c/ec8d1d9767a0f72ef74dd17b4937b817ee08753f.png)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/letsencrypt/original/3X/c/a/ca6c06ea1ea201324bba7048c6841ce60236468d.png) [@system](https://community.letsencrypt.org/u/system)\
**Post date:** [April 8, 2022, 3:18am UTC](https://community.letsencrypt.org/t/ssl-not-working-on-various-modern-browsers-fine-on-others/173396/20 "2022-04-08T03:18:32Z")

</div>

Closed on April 8, 2022, 3:18am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
