Chrome can't access local website with http or https - Is HSTS the problem?

General support questions
Post Reply
BGood
Posts: 18
Joined: 2016/12/25 02:40:14

Chrome can't access local website with http or https - Is HSTS the problem?

Post by BGood » 2017/11/13 16:42:50

I recently dedicated one PC on my home LAN as a Chrome 7 development server for migration of a Drupal 6 production website and find that the Chrome browser on my desktop cannot access the development website using either http or https and I think it may have something to do with HSTS and the server's self-signed certificate.

The server is named ASW.DEV and has a static IP LAN address which was added to my desktop's hosts file in Windows 7. I can access the website using IE and firefox browsers, and from chrome on my laptop, but not from the chrome browser on my desktop. When I navigate to ASW.DEV from my desktop, chrome gives me the following Privacy Error
Privacy Error.jpg
Privacy Error.jpg (20.98 KiB) Viewed 2723 times
and when I click on Advanced, the diagnostic message includes "You cannot visit asw.dev right now because the website uses HSTS. Network errors and attacks are usually temporary, so this page will probably work later." I do not see that HSTS is invoked anywhere in my Apache or SSL configuration, but when I check the Chrome browser's internal site settings with "chrome://net-internals/#hsts", I see that asw.dev and http://www.asw.dev are both set to https only.
HSTS restriction.jpg
HSTS restriction.jpg (25.79 KiB) Viewed 2723 times
Unfortunately entering either form of asw.dev in Chrome's "Delete domain security policies" does nothing. I checked to see if either domains might be in Google's "preloaded" list and they do not seem to be. So my conclusion is that something in my Desktop version of Chrome (Version 63.0.3239.40 (Official Build) beta 64-bit) is causing this problem and there are 3 options, each of which I tried without success:

1 - Remove HSTS restriction from Chrome (Doesn't work)
2 - Get Apache to serve valid https (Gives certificate error)
3 - Rebuild/reset the website's Self-Signed Certificate for https (Also gives certificate error)
4 - Rename the development website to get around the problem (Haven't done this yet)

If anyone has any ideas on how to correct this problem, I sure would appreciate the guidance. Thanks.

User avatar
TrevorH
Site Admin
Posts: 33216
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Chrome can't access local website with http or https - Is HSTS the problem?

Post by TrevorH » 2017/11/13 16:49:30

This looks like a question that would be better addressed to a forum devoted to chrome, especially since it's something we don't ship at all.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

BGood
Posts: 18
Joined: 2016/12/25 02:40:14

Re: Chrome can't access local website with http or https - Is HSTS the problem?

Post by BGood » 2017/11/13 16:58:57

Thanks for the quick reply, Trevor. With regard to options 2 and 3, can you suggest a reference for resetting the default SSL certificates for localhost under Centos 7, creating SSL certificates under Centos 7, or the best Chrome forum to post this question? Thanks.

User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: Chrome can't access local website with http or https - Is HSTS the problem?

Post by avij » 2017/11/13 18:15:12

https://ma.ttias.be/chrome-force-dev-do ... aded-hsts/

Because .dev is a valid top level domain, your best option (at least in the longer term) is to use some other top level domain than .dev. I'd suggest not postponing the inevitable -- rename the domain now.

BGood
Posts: 18
Joined: 2016/12/25 02:40:14

Re: Chrome can't access local website with http or https - Is HSTS the problem?

Post by BGood » 2017/11/13 19:09:19

Thanks, avij. Not exactly the news I wanted to hear, but I will try changing the site name to 'asw.test' and see if chrome behaves better.

pjsr2
Posts: 614
Joined: 2014/03/27 20:11:07

Re: Chrome can't access local website with http or https - Is HSTS the problem?

Post by pjsr2 » 2017/11/13 20:03:57

RFC2606 (Reserved Top Level DNS Names) defines names you can use for testing. See http://www.ietf.org/rfc/rfc2606.txt

Post Reply