You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
container-overlay/profiles/templates/homeassistant/nginx/ssl/create-ssl

9 lines
547 B

# Calculate run=/bin/bash
[[ -n "$(ls -A /var/calculate/ssl)" ]] && exit
cd /var/calculate/ssl
openssl req -new -x509 -nodes -subj "/CN=calculate.root" -newkey rsa:2048 -keyout ca.key -out ca.crt -reqexts v3_req -extensions v3_ca
openssl req -new -nodes -sha256 -newkey rsa:2048 -config /var/db/repos/container/profiles/ini.env -out domain.csr -keyout privkey.pem
openssl x509 -req -in domain.csr -CA ca.crt -CAkey ca.key -CAcreateserial -days 500 -sha256 -extfile /var/db/repos/container/profiles/ini.env -extensions req_ext -out fullchain.pem