免费申请Google SSL证书

参考:https://github.com/acmesh-official/acme.shhttps://github.com/acmesh-official/acme.sh/wiki/Google-Trust-Services-CAhttps://cloud.google.com/public-certificate-authority/docs/quickstart 1、申请Google的EAB key and EAB id: 登录云平台Shell Cloud Shell 请求 EAB 密钥 ID 和 HMAC,请运行以下命令: gcloud publicca external-account-keys create 此命令会返回在公共 CA 的生产环境中有效的 EAB 密钥。在响应正文中,keyId 字段包含 EAB 密钥 ID,b64MacKey 字段包含 EAB HMAC。 您必须在获取 EAB 密钥后的 7 天内使用它。如果您不在 7 天内使用 EAB 密钥,则该密钥会失效。使用 EAB Secret 注册的 ACME 帐号没有有效期。 2、安装acme.sh curl https://get.acme.sh | sh -s email=my@example.com 3、申请证书 acme.sh --register-account -m myemail@example.com --server google \ --eab-kid xxxxxxx \ --eab-hmac-key xxxxxxx acme.sh --issue --server google \ -d example.com -d '*.example.com' --dns dns_googledomains \ --keylength ec-256 4、安装证书到nginx acme.sh --install-cert -d example.com \ --key-file /path/to/keyfile/in/nginx/key.pem \ --fullchain-file /path/to/fullchain/nginx/cert.pem \ --reloadcmd "service nginx force-reload" Windows下的 win-acme 安装https://www.win-acme.com 使用阿里云DNS的API注册example.com和其泛域名证书,并把证书安装进IIS10的第二个站点,同时保存pem和pfx证书到D:\CentralSSL里 wacs.exe --source manual --host example.com,*.example.com --validation aliyun --aliyunserver dns.aliyuncs.com --aliyunapiid ******* --aliyunapisecret ******* --store certificatestore,pemfiles,pfxfile --certificatestore My --pemfilespath D:\CentralSSL --pfxfilepath D:\CentralSSL --pfxpassword ******* --installation iis --installationsiteid 2 使用腾讯dns的API申请ecc证书并保存到D:\CentralSSL wacs.exe --source manual --host example.com,*.example.com --validation tencent --tencentapiid ******* --tencentapikey ******* --csr ec --store pemfiles,pfxfile --pemfilespath D:\CentralSSL --pfxfilepath D:\CentralSSL --pfxpassword *******...
阅读更多

内网wpad代理自动检测配置无感知访问google

参考:https://www.cnblogs.com/zyxnhr/p/10980279.html https://zh.wikipedia.org/wiki/网络代理自动发现协议 网络代理自动发现协议(Web Proxy Auto-Discovery Protocol,WPAD)是一种客户端使用DHCP和/或DNS发现方法来定位一个配置文件URL的方法。在检测和下载配置文件后,它可以执行配置文件以测定特定URL应使用的代理。 一、创建wpad.dat文件 使用记事本编辑如下内容,另存为文件名:wpad.dat function FindProxyForURL(url, host) { if (shExpMatch(host, "*.google.com")||shExpMatch(host, "google.com")) {return "PROXY 192.168.50.5:8118; DIRECT";} return "DIRECT"; } 仅当访问的域名为google.com时走代理服务器192.168.50.5:8118,其他走直连。 找一台主机(如IP为10.0.0.10)安装IIS服务并把wpad.dat文件放入默认80端口网站的wwwroot下。 在IIS添加MIME类型 扩展名: .dat   MIME类型: application / x-ns-proxy-autoconfig 二、部署dhcp 华为三层交换机上配置的DHCP服务,10.0.0.10是存放wpad.dat的iis服务器,顺便添加了个a.z的主机域名方便部署dns用。命令如下 dhcp server option 252 ascii http://10.0.0.10/wpad.dat dhcp server domain-name a.z 三、部署dns 在DNS服务器里新建区域a.z 添加A记录:wpad指向10.0.0.10 如果是windows dns服务器,wpad默认是禁止解析的,需要修改注册表并重启dns服务才能生效。 开始>运行> Regedit 在下表中找到注册表项位置 在GlobalQueryBlockList键上单击鼠标右键> 修改。 删除wpad条目,然后单击“ 确定”。 您需要重新启动Windows DNS服务器服务才能使此更改生效。 四、配置Internet选项如下:...
阅读更多