GithubHelp home page GithubHelp logo

aliyun_certbot's Introduction

证书申请 支持阿里云脚本使用 certbot

资料

https://www.digitalocean.com/community/tools/nginx?global.nginx.nginxConfigDirectory=%2Fusr%2Flocal%2Fnginx%2F&global.nginx.workerProcesses=4&global.nginx.user=dk&global.nginx.clientMaxBodySize=50&global.app.lang=zhCN
https://snapcraft.io/docs/installing-snap-on-centos
https://certbot.eff.org/instructions?ws=nginx&os=centosrhel7
https://eff-certbot.readthedocs.io/en/stable/using.html#webroot

安装步骤

sudo yum install snapd
sudo systemctl enable --now snapd.socket
sudo ln -s /var/lib/snapd/snap /snap
sudo snap install core
sudo snap refresh core
sudo snap install --classic certbot
sudo ln -s /snap/bin/certbot /usr/bin/certbot
certbot --server https://acme-v02.api.letsencrypt.org/directory --key-type ecdsa --elliptic-curve  secp384r1 --rsa-key-size 4096 --email [email protected] --cert-name example.com  -d "*.example.com" -d  "example.com" --manual --preferred-challenges certbot_dns-01 certonly

按照提示在域名解析那里 添加txt _acme-challenge值 进行检验 下面有提供全动态化申请https证书demo

删除证书

certbot delete --cert-name example.com

吊销证书

certbot revoke --cert-name example.com

申请https证书demo 使用环境是python3.7 config.ini 填写阿里云 AccessKey appid appsecret 以及要申请证书域名 config.ini配置文件 修改hook shell脚本python 环境目录 在这里插入图片描述 把代码下载下来使用python3.7环境 安装包 pip install -r requirements.txt 执行 sh start.sh就可以了 具有有问题可以提出 代码

aliyun_certbot's People

Contributors

dengbaikun avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.