mirror of
https://github.com/civsocit/olgram.git
synced 2023-07-22 01:29:12 +03:00
custom certificate create directory
This commit is contained in:
parent
46ba3a57aa
commit
47d9f510a9
@ -5,7 +5,9 @@ if [ ! -z "${CUSTOM_CERT}" ]; then
|
|||||||
echo "Use custom certificate"
|
echo "Use custom certificate"
|
||||||
if [ ! -f /cert/private.key ]; then
|
if [ ! -f /cert/private.key ]; then
|
||||||
echo "Generate new certificate"
|
echo "Generate new certificate"
|
||||||
openssl req -newkey rsa:2048 -sha256 -nodes -keyout /cert/private.key -x509 -days 1000 -out /cert/public.pem -subj "/C=US/ST=Berlin/L=Berlin/O=my_org/CN=${WEBHOOK_HOST}"
|
rm -rf /cert
|
||||||
|
mkdir /cert
|
||||||
|
openssl req -newkey rsa:2048 -sha256 -nodes -keyout /cert/private.key -x509 -days 10000 -out /cert/public.pem -subj "/C=US/ST=Berlin/L=Berlin/O=my_org/CN=${WEBHOOK_HOST}"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user