install_letsencrypt_certbot_apache2_ubuntu_server_22_04
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
install_letsencrypt_certbot_apache2_ubuntu_server_22_04 [2023/06/22 15:11] – wikiadmin | install_letsencrypt_certbot_apache2_ubuntu_server_22_04 [2023/06/22 15:48] (current) – wikiadmin | ||
---|---|---|---|
Line 2: | Line 2: | ||
If you have Certbot installed and it is not being detected, then purge it. | If you have Certbot installed and it is not being detected, then purge it. | ||
+ | |||
+ | Go Here to: [[remove_letsencrypt_certbot_re_install|Remove LetsEncrypt Certbot in Order to Properly Re-Install Certbot]] | ||
Reinstalling Certbot properly. | Reinstalling Certbot properly. | ||
Line 202: | Line 204: | ||
Now, you have successfully installed SSL on your website. | Now, you have successfully installed SSL on your website. | ||
</ | </ | ||
+ | |||
+ | **APPLY FOR LETSENCRYPT SSL CERTIFICATE USING CERTBOT** | ||
+ | |||
+ | < | ||
+ | sudo certbot --apache | ||
+ | Saving debug log to / | ||
+ | Enter email address (used for urgent renewal and security notices) | ||
+ | | ||
+ | |||
+ | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
+ | Please read the Terms of Service at | ||
+ | https:// | ||
+ | agree in order to register with the ACME server. Do you agree? | ||
+ | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
+ | (Y)es/(N)o: Y | ||
+ | |||
+ | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
+ | Would you be willing, once your first certificate is successfully issued, to | ||
+ | share your email address with the Electronic Frontier Foundation, a founding | ||
+ | partner of the Let's Encrypt project and the non-profit organization that | ||
+ | develops Certbot? We'd like to send you email about our work encrypting the web, | ||
+ | EFF news, campaigns, and ways to support digital freedom. | ||
+ | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
+ | (Y)es/(N)o: N | ||
+ | Account registered. | ||
+ | |||
+ | Which names would you like to activate HTTPS for? | ||
+ | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
+ | 1: example.com | ||
+ | 2: www.example.com | ||
+ | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
+ | Select the appropriate numbers separated by commas and/or spaces, or leave input | ||
+ | blank to select all options shown (Enter ' | ||
+ | Requesting a certificate for cabdrop.com and www.cabdrop.com | ||
+ | |||
+ | Successfully received certificate. | ||
+ | Certificate is saved at: / | ||
+ | Key is saved at: / | ||
+ | This certificate expires on 2023-09-20. | ||
+ | These files will be updated when the certificate renews. | ||
+ | Certbot has set up a scheduled task to automatically renew this certificate in the background. | ||
+ | |||
+ | Deploying certificate | ||
+ | Successfully deployed certificate for example.com to / | ||
+ | Successfully deployed certificate for www.example.com to / | ||
+ | Congratulations! You have successfully enabled HTTPS on https:// | ||
+ | |||
+ | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
+ | If you like Certbot, please consider supporting our work by: | ||
+ | * Donating to ISRG / Let's Encrypt: | ||
+ | * Donating to EFF: https:// | ||
+ | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
+ | </ | ||
+ | |||
+ | **Check the Auto-Renewal status, i.e. that Certbot has setup Auto-Renewal of the Certificate** | ||
+ | |||
+ | < | ||
+ | sudo systemctl status certbot.timer | ||
+ | ● certbot.timer - Run certbot twice daily | ||
+ | | ||
+ | | ||
+ | Trigger: Thu 2023-06-22 23:58:49 UTC; 8h left | ||
+ | | ||
+ | |||
+ | Jun 22 15:02:09 svr1 systemd[1]: Started Run certbot twice daily. | ||
+ | </ | ||
+ | |||
+ | **Revoking LetsEncrypt Certificates** | ||
+ | |||
+ | |||
+ | If you wish to remove a certificate from your server it can be revoked using a subcommand with Let’s Encrypt client. The command below can be used to revoke a particular certificate. | ||
+ | |||
+ | < | ||
+ | $ sudo certbot revoke --cert-path / | ||
+ | </ | ||
+ | |||
+ | Note: Replace your-domain.com with the domain which certificate you wish to revoke. | ||
+ | |||
+ | The process does not give a confirmation upon completion, but if you perform it again you will get a message that the certificate has already been revoked. | ||
+ |
install_letsencrypt_certbot_apache2_ubuntu_server_22_04.1687446705.txt.gz · Last modified: 2023/06/22 15:11 by wikiadmin