1.首先确认你的证书不再需要,如果有必要,请执行下面的命令进行备份 cp /etc/letsencrypt/ /etc/letsencrypt.backup -r 2.撤销证书然后删除证书 [root@localhost certbot-0.34.2]# certbot revoke ####这个是撤销命令,执行这命令下面会报错要让我指定变量位置 Saving debug log to /var/log/letsencrypt/letsencrypt.log Error! Exactly one…
//高效率遍历Map以及在循环过程中移除 remove指定key //使用iter循环的时候 可以在循环中移除key,for在循环的过程中移除会报错哦 //本方法效率高 Iterator iter = finalFenleiMap.entrySet().iterator(); while (iter.hasNext()){ Map.Entry entry = (Map.Entry) iter.next(); Object key = entry.getKey(); if(key!=null){…
免费SSL证书Let's Encrypt(certbot)安装使用教程 https://www.vpser.net/build/letsencrypt-certbot.html…
环境说明 [root@localhost ~]# cat /etc/redhat-release CentOS Linux release 7.5.1804 (Core) [root@localhost ~]# uname -r 3.10.0-862.11.6.el7.x86_64 安装 此处使用yum安装certbot #certbot 包在epel源中,所以此处需要先安装epel源 #另一种安装方法直接下载 wget https://dl.eff.org/certbot-auto #因为域名…
目录 客户端 certbot acme.sh 安装acme.sh 1. 自动安装 2. 手动安装 3. 测试收否安装成功 使用acme.sh生成证书 1. HTTP 方式 2. DNS 方式 1. 生成证书记录 2. 在域名解析中手动添加TXT记录 3. 重新生成证书 4. 使用DNS API的模式进行证书申请 (支持自动更新) 阿里云DNS API DnsPod API 查看/删除证书 使用acme.sh安装证书 Nginx 示例 Apache 示例 更新证书 更新acme.sh 删除acme…
Let’s Encrypt从2018年开始支持泛域名证书,有效期3个月,目前仅支持acme方式申请,暂不支持certbot. 1.安装acme.sh curl https://get.acme.sh | sh 2.请求证书(泛域名以*.s-b.me为例) cd /.acme.sh ./acme.sh --issue -d *.s-b.me -d s-b.me --dns --yes-I-know-dns-manual-mode-enough-go-ahead-please 输出: [Sat Ma…
什么是 Let’s Encrypt? 部署 HTTPS 网站的时候需要证书,证书由 CA (Certificate Authority )机构签发,大部分传统 CA 机构签发证书是需要收费的,这不利于推动 HTTPS 协议的使用.Let’s Encrypt 也是一个 CA 机构,但这个 CA 机构是免费的!!!也就是说签发证书不需要任何费用. 什么是通配符证书? 在没有出现通配符证书之前,Let’s Encrypt 支持两种证书. 1)单域名证书:证书仅仅包含一个主机. 2)SAN 证书:一张证…
一. 下载acme.sh,以下四条命令任选一条即可 curl https://get.acme.sh | shwget -O - https://get.acme.sh | sh curl https://raw.githubusercontent.com/Neilpang/acme.sh/master/acme.sh | INSTALLONLINE=1 sh wget -O - https://raw.githubusercontent.com/Neilpang/acme.sh/master/…
remove(移除): 这个操作并不是真正地删除元素,它会移除指定的元素,然后后面的元素依次前移,最后用别的元素来补充. erase(释放): 这个操作会指定释放区间的头和尾迭代器(iterator). 如果要一次性删除指定元素: coll.erase(remove(coll.begin(), coll.end(), [removed element]), coll.end());  代码如下: list<int> coll1; ; i <= ; ++i) { coll1.push_fr…
方法1: List<String> al = new ArrayList<String>(); Iterator<String> it = al.iterator(); while (it.hasNext()) { if ("1".equals(it.next())) it.remove(); } 方法2: List<String> al = new ArrayList<String>(); for (int i = 0; i…