mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-04-23 00:38:30 +02:00
replace variable with %s in printf format string
Found by shellcheck.
This commit is contained in:
@@ -44,7 +44,7 @@ sign_domain() {
|
|||||||
echo " + Generating private key..."
|
echo " + Generating private key..."
|
||||||
openssl genrsa -out "certs/${domain}/privkey.pem" 4096 2> /dev/null > /dev/null
|
openssl genrsa -out "certs/${domain}/privkey.pem" 4096 2> /dev/null > /dev/null
|
||||||
echo " + Generating signing request..."
|
echo " + Generating signing request..."
|
||||||
openssl req -new -sha256 -key "certs/${domain}/privkey.pem" -out "certs/${domain}/cert.csr" -subj "/CN=${domain}/" -reqexts SAN -config <(cat /etc/ssl/openssl.cnf <(printf "[SAN]\nsubjectAltName=${SAN}")) > /dev/null
|
openssl req -new -sha256 -key "certs/${domain}/privkey.pem" -out "certs/${domain}/cert.csr" -subj "/CN=${domain}/" -reqexts SAN -config <(cat /etc/ssl/openssl.cnf <(printf "[SAN]\nsubjectAltName=%s" "${SAN}")) > /dev/null
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for altname in $altnames; do
|
for altname in $altnames; do
|
||||||
|
|||||||
Reference in New Issue
Block a user