issue

1
2
3
4
5
6
7
8
9
acme.sh --issue -d www.example.com -d example.com -d www.v3.example.com \
-d api.example.com \
-d m.example.com -d m.v3.example.com \
-d admin.example.com -d admin.v3.example.com -d mail.example.com \
-d img.example.com -d static.example.com -d help.example.com \
-d git.shanjing-inc.com \
-d labs.shanjing-inc.com \
-d sentry.shanjing-inc.com \
--dns dns_dp

触发证书的安装命令

1
2
3
4
acme.sh --install-cert -d www.example.com \
--keypath /var/build_and_deploy/config/sslcerts/example/example.com.key.pem \
--fullchainpath /var/build_and_deploy/config/sslcerts/example/example.com.cert.pem \
--reloadcmd "/root/.acme.sh/ssldeploy.sh"

/ssldeploy.sh内容:

1
2
3
#!/bin/bash
echo "aaa" >> /root/.acme.sh/fengittest.conf
docker run --rm -v /root/.acme.sh:/var/sslcert -v /var/build_and_deploy:/external_file -e "ANSIBLE_CONFIG=/external_file/ansible/common/ansible.cfg" daocloud.io/hmilyfyj/php-fpm ansible-playbook -i /external_file/ansible/common/allhosts /external_file/ansible/company/ssl-deploy/deploy.yml

deploy.yml 脚本内容:

1
`