mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-03-13 00:50:01 +00:00
Initialize CA
This commit is contained in:
parent
55447b00fb
commit
6703755766
@ -20,6 +20,10 @@ $STD apk add newt
|
||||
$STD apk add openssl
|
||||
#msg_ok "Installed Dependencies"
|
||||
|
||||
msg_info "Preparing environment"
|
||||
$STD echo "export STEPPATH=/etc/step-ca" > ~/.profile
|
||||
msg_ok "Environment prepared"
|
||||
|
||||
msg_info "Installing Alpine Step-CA"
|
||||
$STD apk add step-cli step-certificates
|
||||
msg_ok "Installed Alpine Step-CA"
|
||||
@ -38,6 +42,16 @@ ${CA_PASS}
|
||||
EOF
|
||||
msg_ok "Generated CA secret in ${passwd_file} - ${CA_PASS}"
|
||||
|
||||
|
||||
msg_info "Initialize CA"
|
||||
DNS_FLAT=""
|
||||
for DNS_ENTRY in ${CA_DNS[*]}; do
|
||||
DNS_FLAT="$DNS_FLAT --dns=\"$DNS_ENTRY\""
|
||||
done
|
||||
$STD step ca init --name="$CA_NAME" $DNS_FLAT --password-file=/etc/step-ca/password.txt --acme --deployment-type=standalone --address=0.0.0.0:443 --provisioner=acme
|
||||
$STD step ca provisioner update acme --x509-min-dur=20m --x509-max-dur=32h --x509-default-dur=24h
|
||||
msg_ok "Finished initialization of CA"
|
||||
|
||||
# Start application
|
||||
msg_info "Starting Alpine Step-CA"
|
||||
$STD rc-service step-ca start
|
||||
|
Loading…
Reference in New Issue
Block a user