Delete site from Chrome's preloaded HSTS list - google-chrome

Is there any way to remove entries from Chrome's preloaded HSTS list?
For development reasons I need to route a webpage google-analytics.com which refers to different from the original ip address. But google-analytics.com is on Chrome's preloaded HSTS list. This results in an error while loading web page, because my ssl of google-analytics.com certificate does not properly signed.
I know that I can remove entries from the dynamically created HSTS list via chrome://net-internals/#hsts - but not entries that come with the browser.
Is there any way to tell Chrome that I know what I'm doing?

1) Navigate to chrome://net-internals/#hsts
2)First, to confirm the domain's HSTS settings are recorded by Chrome type the host name into query domain section. Click the query button. If the box returns found with settings information below, the domains HSTS settings are saved in your browser.
For your purpose(if you want to delete):
3)Type the same domain name into the DELETE DOMAIN section and click Delete button.
Your browser will no longer force an HTTPS connection for that site! You can test the working by refreshing of navigating to that site.

If you have create your own CA, create the certificate for google-analytics.com with this CA and import the CA as trusted into the browser/CA store then it should work. It will ignore pinning information if the certificate is signed by an explicitly imported CA.
See also Man in the middle attack to a website which uses public key pinning.

Nope: https://bugs.chromium.org/p/chromium/issues/detail?id=483634
You could try using a self-signed cert but imagine they preload pinning as well for their sites so doubt that would work either.

Related

Why not show Secure in front of URL in my Chrome browser when I open live server from VS code?

Why not show Secure in front of URL in my Chrome browser when I open live server from VS code?
Please If anyone know my problem solution tell me the reason?
enter image description here
What is the reason of my problem?
The only thing that the Not Secure badge in the address bar indicates is that the webpage doesn't have a valid SSL certificate (or that there is no certificate at all, http:// vs https://).
It is not something you need to worry about while developing a website. When you look to host the site, you should look into getting a certificate from a service like "Let's Encrypt" or using a host that provides a free certificate.
One thing to note is that you should avoid using a self signed certificate (as opposed to getting a signed certificate from an authority) if you plan to publish the site to be accessible to people other than yourself. A self signed certificate will result in the same warning in most browsers unless the user has a copy of the certificate in their certificate store (where certificates are stored). You can make it work on an individual computer or network, but it is easy enough to get a proper certificate. You only need to worry about renewing it if the place you get the certificate from doesn't have an auto renewal system.

Chrome - Delete domain security policies is not Working for .app

im trying to delete domain security policy in Google Chrome following this post and this one.
But when i click to delete and clear data browser it not work.
my domain is: http://localhost.domain-test.app:57471 and i using Windows.
im following exacly instructions:
go to chrome://net-internals/#hsts
put localhost.domain-test.app in Delete domain security policies, click Delete Button. (put with port 57471 like example?)
go to settings -> advance settings -> clear data
Then, when i put my domain in chrome browser it force redirect to https. But im developing in localhost, i can't use https.
When i use Internet Explorer this problem not happen.
Thanks for all
The .app top level domain is preloaded for HSTS in the Chrome source code so cannot be “reset”.
See this blog post for more information: https://www.blog.google/technology/developers/introducing-app-more-secure-home-apps-web/ and also here: https://get.app

Local virtual hosts show Privacy Error on Chrome due to HSTS

I have created several virtual hosts for my development processes. They were working just fine till yesterday. But in my chrome app, today they stopped working. Chrome shows: NET::ERR_CERT_AUTHORITY_INVALID
All my vhosts end with .dev. I changed one .dev to .work and its again working. But I can not do this for all vhosts as there are too many of them. What do I do?
PS:
They are working fine in firefox.
The error remains same in chrome incognito mode.
I tried clearing cache and hard reload, deleted my history and cache, restarting chrome even windows multiple time, nothing works.
In one solution, I found an exception can be included in chrome://net-internals/#hsts. I tried deleting domain in there but somehow it still appears in Query Domain search.
Chrome have switched the .dev sub domain to HTTPS only.
They have done this by turning on HSTS for this top level domain, but by preloading this in the Chrome code rather than sending the HSTS header. This means it cannot be switched off in the chrome://net-internals/#hsts screen.
More info:
https://ma.ttias.be/chrome-force-dev-domains-https-via-preloaded-hsts/
So you’re only options are:
Update you’re vhosts to a different TLD (e.g. .test). And yes this might be painful because you have so many.
Move to HTTPS by creating a certificate and updating your URLs. A self signed certificate that you can create yourself will do, however note that HSTS not only blocks accessing the site over plaintext HTTP, but also prevents you clicking through certificate errors. So you’ll need to manually accept any certificate to your trust store before it can be used.
The chrome team have been pushing HTTPS more and more and certain features are now HTTPS-only so even dev envs will need it now. So maybe it’s finally time take the effort to make the switch.

Is my site secure? It has an SSL certificate installed but no lock on the addressbar

I have just bought an SSL certificate and with a great deal of help from my host service installed it on my website. My hosts assure me that it is now secure and that data to and from the site is encrypted.
However I am not a little confused. All redirection within the site is now set to https:// but if I manually put in the same page using http:// it also works. Is this a problem?
Also, no lock appears at the end of the address bar as it seems to do with other secure sites. Should there be?
Each browser/device have a list of recognized Certificate Authorities (CA) that they know and trust. SSL certs from these providers will often display the additional security icons like the lock or the green bar in Chrome. The list is long and varies by browser as you'd expect. This is Mozilla's list, for example.
Typically getting that type of SSL cert is more pricey and comes with an additional step of identity verification.
In your case the lock is not showing but the SSL keys have been installed and configured which means you still ARE secure. (Otherwise you'd get a warning about the SSL cert not matching the domain which lets the user know it may be fake or is at least questionable) As long as you aren't seeing that message you can rest easy that it's at least secure. The browsers just won't go out of their way to show the extra "bling".
As far as your redirect. If you still have something listening at :80 it will work with http as well. If you are trying to force it all to the https version then your rewrite rule may need a little work if you are still able to access it via http. But http and https can co-exist just fine and often do (like a regular http site that doesn't go https until you enter the checkout process) For an API-type of service, or if you are trying to use something like SPDY, you probably want to force everything to use the https protocol instead.

Chrome still showing red https logo even after adding the certificate to trusted root authorities store (Internal-use self-signed SSL Cert)

Trying to set up an encrypted connection for an intranet site. It's for a small company and not dealing with any sensitive information, but still would like to avoid login and password information sending in the clear. Would also like to avoid having to buy a certificate if possible.
I tried creating a certificate with OpenSSL and got everything set up and the site works over an HTTPS connection, but the web browsers are all showing warning messages. So, I googled around and found that I could add the certificate to Windows' Trusted Root Certification Authorities. I tried this, but am still getting the warning messages and "red x" https logo. Also tried importing the certificate into Chrome through the options screen but no luck.
How can I get my internal machines to trust my self-signed SSL certificate and not show a warning message?
I think Mr. Leahy's suggestion to use a name with DNS-like qualification would work. Here's Chromium patch information related to the error:
http://groups.google.com/a/chromium.org/group/chromium-checkins/msg/9fe59a981479aa44?pli=1 (r62178)
If the host name denotes an "intranet host", which in the code means one with either no dot in the name or a dot at the end, then it is considered non-unique, and you get the warning. After quickly looking through other patches involving the warning, I didn't find a way to tell Chrome to relax about the warning.
Im not sure this will apply to your question but I had a similar experience a few days back where chrome would show an insecure site (red cross through the EV ssl)
In my case it was because some links from google apis were over http not https
thus MAKE SURE ALL YOUR EXTERNAL RESOURCES ARE CALLED OVER HTTPS not http!
I stumbled across the same issue today and found a stunningly simple solution:
It turns out that a bad certificate override is displayed during the entire chrome session even if the certificate has been validated or renewed in the meantime.
Restarting chrome fixes that.
If the certificate warning is still present after the restart, then You will have to look at the other answers.