I have placed a script in /etc/letsencrypt/renewal-hooks/post/ as I want the letsencrypt certificate being pushed to my rooter upon renewal. The script works fine, as it is executed when issuing: certbot renew --dry-run thus the certificate appears on my router.
Is it possible that this is not the case with normal renewal within nethserver renewal routine? I am asking, as issuing /usr/libexec/nethserver/letsencrypt-certs -f does not make appear the certificate on my router.
By the way I found this to push my certificate to opnsense. Lacking knowledge may I ask a question here. If I try to re-run the script and the certificate is already there, it does not overwrite it. So my question is, what is likely to happen when letsencrypt certificate is nearly expiring thus being renewed. Will the script copy it as its a renewed one? If not, may someone of you help me with a modification, lets say a force option to be able to overwrite the existing and soon expiring one?
Thanks in advance for sharing your knowledge with me