在一些第三方网站上,使用微信登录可以走免扫码快捷登录,本质是向 localhost.weixin.qq.com 发起请求: 而 localhost.weixin.qq.com 指向本地: localhost.weixin.qq.com. 164 IN A 127.0.0.1 显然本地微信程序应该监听了 14013 端口,而且起了 https 服务,但是要完成 TLS 握手需要证书对应的私钥。难道说微信是把私钥随应用程序分发到每台电脑上? Let's Encrypt 上有 文章 提及过这一点并指出不该这么做: You might be tempted to work around these limitations by setting up a domain name in the global DNS that happens to resolve to 127.0.0.1 (for instance, localhost.example.com ), getting a certificate for that domain name,...