Switch to tab “CA Certificate”, select "In file on server " and fill in: “/home/MYUSERNAMEFORDOMAIN/ssl_certificates/fullchain.pem” Select: “/home/MYUSERNAMEFORDOMAIN/ssl_certificates/privkey.pem” Do the same for section “Matching private key”. “/home/MYUSERNAMEFORDOMAIN/ssl_certificates/cert.pem” Select the tab “Update Certificate and Key” and under “Signed SSL certificate” select the option “File on server”, fill in the location of the certificate: Under “Server configuration” go to “Manage SSL Certificate”. in Virtualmin, select you domain and go to “Edit virtual server”, make sure that SSL is enabled under “Enabled features”. Go to your newly created Cronjob by clicking on it and select “RUN NOW”. *** 3.1 Please log into your Virtualmin admin panel, Select “Webmin -> System -> Scheduled Cron Jobs”. The reason we do this every month is because the certs are only valid 90 days and we have plenty of time to repair if something appears to be wrong with the cert later on… It will do this every 1st of the month during the night. ^^ Above command will copy the certificates to the correct directory after requesting them (i gave a warning in step 2). letsencrypt-auto certonly -email -agree-tos -webroot -renew-by-default -w /home/MYDOMAIN/public_html/ -d -d -authenticator webroot & cp /etc/letsencrypt/live//home/MYUSERNAMEFORDOMAIN/ssl_certificates/cert.pem & cp -f /etc/letsencrypt/live//home/MYUSERNAMEFORDOMAIN/ssl_certificates/chain.pem & cp -f /etc/letsencrypt/live//home/MYUSERNAMEFORDOMAIN/ssl_certificates/fullchain.pem & cp -f /etc/letsencrypt/live//home/MYUSERNAMEFORDOMAIN/ssl_certificates/privkey.pem letsencrypt-auto certonly -email -agree-tos -webroot -renew-by-default -w /home/MYDOMAIN/public_html/ -d -d -authenticator webroot & cp -f /etc/letsencrypt/live//home/MYUSERNAMEFORDOMAIN/ssl_certificates/cert.pem & cp -f /etc/letsencrypt/live//home/MYUSERNAMEFORDOMAIN/ssl_certificates/chain.pem & cp -f /etc/letsencrypt/live//home/MYUSERNAMEFORDOMAIN/ssl_certificates/fullchain.pem & cp -f /etc/letsencrypt/live//home/MYUSERNAMEFORDOMAIN/ssl_certificates/privkey.pemĠ1 3 1 * * cd /root/letsencrypt/ &. It wil probably ask you which editor, i choose Nano, once in the editor enter the following somewhere on a new line (pick the option you choose on step 1!):Ġ1 3 1 * * cd /home/user/letsencrypt/ &. Setup your cronjobs by running: “sudo crontab -e” *** Mkdir /home/MYUSERNAMEFORDOMAIN/ssl_certificates Reason for this is because Virtualmin has a protection where it only allows a certificate from the user/domains directory: *** Create your directory where you will be saving your certificate later on. ^^ This will download the Let’s Encrypt from github with executable script Login to SSH and get root privileges (root/sudo -i): First install Let’s Encrypt script/programm. MYUSERNAMEFORDOMAIN: my system username known in virtualmin Get the following right for your “variables”, fill in your own offcourse:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |