Merge 39e0191c1b into 1e6b68f5d1
This commit is contained in:
commit
bad5ac5b7d
12
acme.sh
12
acme.sh
@ -337,6 +337,18 @@ _createkey() {
|
|||||||
_info "Using ec name: $eccname"
|
_info "Using ec name: $eccname"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# to prevent the key file from being world-readable
|
||||||
|
# create an empty file and chmod 600 before saving the key contents
|
||||||
|
if ! touch "$f"; then
|
||||||
|
_err "unable to create empty file '$f' for private key"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! chmod 600 "$f"; then
|
||||||
|
_err "unable to chmod 600 key file $f"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
#generate account key
|
#generate account key
|
||||||
if [ "$isec" ] ; then
|
if [ "$isec" ] ; then
|
||||||
openssl ecparam -name $eccname -genkey 2>/dev/null > "$f"
|
openssl ecparam -name $eccname -genkey 2>/dev/null > "$f"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user