I tried to use this script on my Synology with DSM 7 installed. DSM 7 changes are driving me crazy, I really don't find where to edit the nginx vhost conf :') I'm quite sure that the other folders in /usr/syno/etc/certificate/ are regenerated every time nginx and other services are restarted.Īnd again, in DSM 7 changes the restart command: synosystemctl restart xxxx. INFO : the list of certificates with description, services list where applied.DEFAULT : the hash (folder name) of default certificate to apply.Here there's folders containing the certificates and three files: What I've seen (on DSM 7) the original certificates are stored in /usr/syno/etc/certificate/_archive/ Hi I'm doing a similar script to automate the certificate renewal and install it in the Synology. Is this related to DSM 7 or anything else? I then restart the Synology but the certificates don't change. I copy the files without any problem and set the permission. however the updated cert will name to prvikey1,2,3,4,5.pem My code is work, but I haven't write the checking statementĭue to I use docker to renew Let's Encrypt Cert. Just for your reference to implement your code, so that can support ReverseProxy and AppProtal I use array to store the sub-folder which is under the ReverseProxy directory # ALL=(ALL) NOPASSWD: /var/services/homes//replace_certs.sh add this line to sudoers, is the user you create): # This user will need to be able to sudo as root (i.e. Ensure you have a user setup on synology that has ssh access (and ssh access is setup). # and put into a directory (this will be $CERT_DIRECTORY). Get your 3 PEM files ready to copy over from your local machine/update server (privkey.pem, fullchain.pem, cert.pem)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |