mirror of
https://github.com/m8tin/cis.git
synced 2026-11-02 14:17:24 +01:00
Modifing access to 640 for cert files
This commit is contained in:
1 file changed
+1
@@ -381,6 +381,7 @@ function single() {
|
|||||||
--fullchain-file "${_DOMAIN_FOLDER}fullchain.crt" \
|
--fullchain-file "${_DOMAIN_FOLDER}fullchain.crt" \
|
||||||
--key-file "${_DOMAIN_FOLDER}private.key" \
|
--key-file "${_DOMAIN_FOLDER}private.key" \
|
||||||
&& openssl pkcs12 -export -in "${_DOMAIN_FOLDER}fullchain.crt" -inkey "${_DOMAIN_FOLDER}private.key" -out "${_DOMAIN_FOLDER}bundle.pkx" -passout pass: \
|
&& openssl pkcs12 -export -in "${_DOMAIN_FOLDER}fullchain.crt" -inkey "${_DOMAIN_FOLDER}private.key" -out "${_DOMAIN_FOLDER}bundle.pkx" -passout pass: \
|
||||||
|
&& chmod 640 "${_DOMAIN_FOLDER}fullchain.crt" "${_DOMAIN_FOLDER}private.key" "${_DOMAIN_FOLDER}bundle.pkx" \
|
||||||
&& echo "Certificate of domain '${_PRETTY_DOMAIN}' was updated." \
|
&& echo "Certificate of domain '${_PRETTY_DOMAIN}' was updated." \
|
||||||
&& tryGitPush "${_PRETTY_DOMAIN}" \
|
&& tryGitPush "${_PRETTY_DOMAIN}" \
|
||||||
&& return 0
|
&& return 0
|
||||||
|
|||||||
Reference in new issue
Block a user