Skip to content

Instantly share code, notes, and snippets.

@kerasai
Last active May 18, 2020 11:53
Show Gist options
  • Save kerasai/8ea3a51dd938590710af8896583bfd98 to your computer and use it in GitHub Desktop.
Save kerasai/8ea3a51dd938590710af8896583bfd98 to your computer and use it in GitHub Desktop.
certbot certonly --manual --preferred-challenges dns -d '*.domain.com' -d domain.com
# Will have to add 2 DNS records in separate steps.
# Verify records are there.
nslookup -q=txt _acme-challenge.domain.com
dig -t txt _acme-challenge.domain.com +short
# Place files, if needed.
# Restart webserver.
# Inspect updated cert.
echo | openssl s_client -servername domain.com -connect domain.com 2>/dev/null | openssl x509 -noout -dates
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment