#!/bin/bash

export domain_name=uat

acme.sh --issue -dns dns_ali --force --dnssleep 2 -k ec-256 -d \*.${domain_name}.uavcmlc.com

acme.sh --install-cert -d \*.${domain_name}.uavcmlc.com --ecc \
  --key-file     /etc/nginx/conf.d/ssl_key/x.${domain_name}.uavcmlc.key.pem \
  --fullchain-file /etc/nginx/conf.d/ssl_key/x.${domain_name}.uavcmlc.cert.pem \
  --reloadcmd   "systemctl restart nginx --force"
