How to install ssl certificate on cockpit

1 Views· 10/24/23
DanyChrys Barosoft
DanyChrys Barosoft
In I.T.

⁣1. You must have installed certbot if not install with this command: apt-get install python3-certbot-apache -y
2. Generate your real ssl certificate with certbot let's encrypt with this command: certbot --apache -d
3. Note: you must run this command with port 80 open
4. Copy this files from let's encrypt folder: /etc/letsencrypt/live/
5. Rename this files: fullchain.pem rename to nume domeniu.cert and privkey.pem rename to nume domeniu.key
6. Put this files on cockpit certicates folder: /etc/cockpit/ws-certs.d
7. chown cockpit-ws:cockpit-ws <nume domeniu.cert> <nume domeniu.key>
8. systemctl restart cockpit

Show more

 0 Comments sort   Sort By