Hotfix release available: 2026-07-14a "Mort".
upgrade now! [57.1] (what's this?)
New release available: 2026-07-14 "Mort".
upgrade now! [57] (what's this?)
Hotfix release available: 2025-05-14b "Librarian".
upgrade now! [56.2] (what's this?)
Hotfix release available: 2025-05-14a "Librarian".
upgrade now! [56.1] (what's this?)
New release available: 2025-05-14 "Librarian".
upgrade now! [56] (what's this?)
install
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| install [2021/03/06 02:34] – rene | install [2024/08/05 17:28] (current) – rene | ||
|---|---|---|---|
| Line 322: | Line 322: | ||
| ===== KONFIMINE ===== | ===== KONFIMINE ===== | ||
| + | ==== letsencrypt / HTTPS ==== | ||
| + | * https:// | ||
| + | * https:// | ||
| + | == Adding HTTPS to a new subomain == | ||
| + | First make a copy of current files so that you can view diff afterwards: | ||
| + | |||
| + | cp / | ||
| + | cp / | ||
| + | |||
| + | Look at a sample conf for example for " | ||
| + | |||
| + | Make sure that in your apache conf (/ | ||
| + | |||
| + | Run the following command and select the virtual hosts you want to upgrade to HTTPS | ||
| + | You can there select only the new ones you want to add | ||
| + | |||
| + | certbot --apache | ||
| + | |||
| + | # NB! For some odd reason this process tends to mess up bernard.ee conf (/ | ||
| + | - The main ServerAlias is changed to the new domain and also certificate files point wrongly. The wrong certificate locations should have been added to the new conf section, but they are missing from there Restore right values manually based on the diff with originla conf files. | ||
| + | - Make sure the new conf starts with "< | ||
| + | - Make sure the new conf section has " | ||
| + | |||
| + | # it does also add some rewrite rules into your own base conf (/ | ||
| + | |||
| + | == Renewal (new) == | ||
| + | Open up port 80 in Apache conf: | ||
| + | vi / | ||
| + | |||
| + | Generate new certs (select option " | ||
| + | certbot certonly --force-renewal -d bernard.ee | ||
| + | |||
| + | Check what was the new folder name created for new certs: | ||
| + | l / | ||
| + | |||
| + | Change cert folder in Apache conf (SSLCertificateFile / SSLCertificateKeyFile): | ||
| + | apache_conf | ||
| + | |||
| + | Restart apache: | ||
| + | apache_restart | ||
| + | |||
| + | If new cert works then remove old certs directory: | ||
| + | rm -rf / | ||
| + | |||
| + | |||
| + | # Updating rene.ee.... | ||
| + | NB! Ilmselt tuleb DNS'i verificationit kasutada, sest wildcard serti ei saa HTTP' | ||
| + | |||
| + | Disable index preview (as we need to make rene.ee publicly accessible for renewal) | ||
| + | / | ||
| + | apatche_restart | ||
| + | |||
| + | Removce htaccess to make rene.ee publicly accessible: | ||
| + | mv / | ||
| + | |||
| + | Rund the command (NB! Mind that it's wildcard!) (/ | ||
| + | certbot certonly --force-renewal -d *.rene.ee | ||
| + | |||
| + | Enable index htaccess | ||
| + | mv / | ||
| + | |||
| + | Enable index showing | ||
| + | / | ||
| + | apatche_restart | ||
| + | |||
| + | |||
| + | Clean up afterwards from here (not needed for web server): | ||
| + | / | ||
| + | |||
| + | Close port 80: | ||
| + | vi / | ||
| + | |||
| + | |||
| + | == Renewal (original) == | ||
| + | Certificates expire in 90 days. Renewal can only be automatic if port 80 is open... Which by default is not... | ||
| + | |||
| + | You can check that the daemon is working: | ||
| + | |||
| + | systemctl status certbot.timer | ||
| + | |||
| + | Renewal can be forced with the following command | ||
| + | PS. Seems that this doesn' | ||
| + | |||
| + | certbot renew --force-renewal | ||
| ==== nVidia draiveri fix ==== | ==== nVidia draiveri fix ==== | ||
install.1614990888.txt.gz · Last modified: 2021/03/06 02:34 by rene
