mirror of
https://github.com/dongdigua/dongdigua.github.io
synced 2024-11-27 21:30:53 +08:00
dongdigua
197a1056ab
otherwise ca-certificate will be missing and it can't install package through https
14 lines
329 B
Bash
Executable File
14 lines
329 B
Bash
Executable File
#! /bin/sh
|
|
|
|
if test -f /ssl/gmid.pem; then
|
|
echo "OK certificate exists"
|
|
else
|
|
echo "generating certificate..."
|
|
mkdir /ssl
|
|
apk add --no-cache libressl
|
|
libressl req -x509 -newkey rsa:4096 -nodes \
|
|
-keyout /ssl/private/gmid.key \
|
|
-out /ssl/gmid.pem \
|
|
-days 365 -subj "/CN=$GEMINI_HOST"
|
|
fi
|