最近发现谷歌浏览器访问我的开发网站时(测试),原本还提供process(继续访问)的链接的,现在已经没有了.也就是说当我访问自签证书的网站时,已经没有办法继续访问了.
找了下,最后发现下面的这2个办法相对靠谱一些和可操作性好一些.
第一个是,在浏览器中输入
chrome://flags/#allow-insecure-localhost
然后 将它设置为Enable (启用),但是这个是说本机的页面.如果来自局域网的其它主机的,则没办法.然后就需要使用 其它工具进行监听本机端口和转发了.比如 socat
socat tcp-listen:8090,reuseaddr,fork tcp:broken-remote-site.com:443
还有一个靠谱的办法是:
在浏览器访问的被拦截的页面中,任何位置,点击一下.然后直接按键盘输入特定的字符,则会自动跳转刷新页面.
“thisisunsafe
” is a BYPASS_SEQUENCE for Chrome version 65
“badidea
” Chrome version 62 – 64.
“danger
” used to work in earlier versions of Chrome
You don’t need to look for input field, just type it. It feels strange but it is working.
I tried it on Mac High Sierra.
To double check if they changed it again go to Latest chromium Source Code
To look for BYPASS_SEQUENCE, at the moment it looks like that:
var BYPASS_SEQUENCE = window.atob('dGhpc2lzdW5zYWZl');
Now they have it camouflaged, but to see the real BYPASS_SEQUENCE you can run following line in a browser console.
console.log(window.atob('dGhpc2lzdW5zYWZl'));
转载请注明:Linc Hu » Google Chrome 无法访问使用自签证书网站的问题