Skip to content
Snippets Groups Projects
Verified Commit 81eb00d4 authored by David Beniamine's avatar David Beniamine
Browse files

expand certbot

parent 429763dd
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
if [ -z "$2" ]
then
echo "usage $0 additional-dommains certificate"
echo "additional-domains : comma separated list of domains"
echo "expand the existing certificate with the given domains"
exit 1
fi
domains="`openssl x509 -in $2 -inform pem -noout -text | grep DNS | sed -e 's/ *//g' -e 's/DNS://g'`,$1"
echo "Requesting certificate for domains: '$domains'"
certbot certonly --expand --apache --must-staple --hsts --domains=$domains
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment