I used nginx to build a web service, using Let's Encrypt and my own domain name. However, the certificate must be renewed every three months. Currently, the certificate is downloaded from the web panel and then manually placed in the specified directory of the virtual machine.

How to automatically renew?
How to download the certificate to the specified location?

Additional description

The https web service I built needs to specify the location of the SSL certificate. This location needs to be readable and writable.

Thank you very much for the reply

    6 days later