标签归档:webtool

SSL泛解析证书

使用

首次生成证书

php think  webtool:ssl yourdomain.com issue_ca_ssl

续签证书

php think  webtool:ssl yourdomain.com renew_ca_ssl

同步证书至宝塔

php think  webtool:ssl_to_bt 0

配置.env

bt_url = http://IP:8098/
bt_key = 

依赖ZeroSSL

安装

wget -O -  https://get.acme.sh | sh -s email=yourmailaddress
或使用国内
curl https://gitcode.net/cert/cn-acme.sh/-/raw/master/install.sh?inline=false | sh -s email=yourmailaddress 

其中yourmailaddress是邮件地址

ln -s ~/.acme.sh/acme.sh

选择CA服务器

推荐zerossl

~/.acme.sh/acme.sh --set-default-ca --server letsencrypt
~/.acme.sh/acme.sh --set-default-ca --server buypass
~/.acme.sh/acme.sh --set-default-ca --server zerossl

  • letsencrypt https://acme-v02.api.letsencrypt.org/directory
  • letsencrypt_test https://acme-staging-v02.api.letsencrypt.org/directory
  • buypass https://api.buypass.com/acme/directory
  • buypass_test https://api.test4.buypass.no/acme/directory
  • zerossl https://acme.zerossl.com/v2/DV90
  • sslcom https://acme.ssl.com/sslcom-dv-rsa, https://acme.ssl.com/sslcom-dv-ecc
  • google https://dv.acme-v02.api.pki.goog/directory
  • googletest https://dv.acme-v02.test-api.pki.goog/directory