You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
i can't find in the repository https://github.com/jherby2k/via-justa-home-assistant-addons where to write :-(
I want to ask you if is possible to add an optiot that, after the first line of SAN certificate has generated, copy and rename the certificate here:
/ssl/fullchain.pem
/ssl/privkey.pem
So we can use this addon instead of duckdns addon, this is some line of code that i have created but i don't know how to test this:
int h = 0
for domain in $(bashio::config 'domains'); do
sans=(${domain//,/ })
bashio::log.debug "Checking for certificate ${CERT_PATH}/certificates/${sans[0]//[*]/_}.crt existence"
if [[ ! -f "${CERT_PATH}/certificates/${sans[0]//[*]/_}.crt" ]]; then
bashio::log.info "Certificate for domain ${sans[0]} not found, issuing"
domainargs=$args
for san in ${sans[@]}; do
domainargs="${domainargs} -d ${san}"
done
bashio::log.debug "running command: lego ${domainargs} run"
lego ${domainargs} run
for (i=1 ; i<100 ; i++) ;
if [ h == 0 ];
then
cp -rp ${CERT_PATH}/certificates/${sans[0]//[*]/_}.crt /ssl/fullchain.pem
cp -rp ${CERT_PATH}/certificates/${sans[0]//[*]/_}.key /ssl/privkey.pem
fi
else
bashio::log.info "Certificate for domain ${sans[0]} found"
fi
h++
done
I hope in this implementation
Best regards
Stefano
The text was updated successfully, but these errors were encountered:
Hello,
i can't find in the repository https://github.com/jherby2k/via-justa-home-assistant-addons where to write :-(
I want to ask you if is possible to add an optiot that, after the first line of SAN certificate has generated, copy and rename the certificate here:
/ssl/fullchain.pem
/ssl/privkey.pem
So we can use this addon instead of duckdns addon, this is some line of code that i have created but i don't know how to test this:
I hope in this implementation
Best regards
Stefano
The text was updated successfully, but these errors were encountered: