Difference between revisions of "Certbot"

From wikieduonline
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 7: Line 7:
  
 
You can additionally install [[Plugins (certbot)|certbot plugins]]:
 
You can additionally install [[Plugins (certbot)|certbot plugins]]:
python3-certbot-apache
+
* <code>python3-certbot-apache</code>
python3-certbot-dns-cloudflare
+
* <code>python3-certbot-dns-cloudflare</code>
[[python3-certbot-dns-digitalocean]]
+
* <code>[[python3-certbot-dns-digitalocean]]</code>
[[python3-certbot-dns-dnsimple]]
+
* <code>[[python3-certbot-dns-dnsimple]]</code>
python3-certbot-dns-google
+
* <code>python3-certbot-dns-google</code>
python3-certbot-dns-rfc2136
+
* <code>python3-certbot-dns-rfc2136</code>
python3-certbot-dns-route53
+
* <code>python3-certbot-dns-route53</code>
[[python3-certbot-nginx]]
+
* <code>[[python3-certbot-nginx]]</code>
  
 
== [[Ubuntu]] files ==
 
== [[Ubuntu]] files ==
Line 21: Line 21:
 
::<code>[[/etc/letsencrypt/]]</code>
 
::<code>[[/etc/letsencrypt/]]</code>
 
::<code>[[/etc/letsencrypt/renewal/]]</code>
 
::<code>[[/etc/letsencrypt/renewal/]]</code>
* Renewals configuration: <code>/etc/cron.d/[[cerbot (cron)|certbot]]</code>
+
* Renewals configuration: <code>/etc/cron.d/certbot]]</code>
 
* Logs: <code>[[/var/log/letsencrypt/letsencrypt.log]]</code>
 
* Logs: <code>[[/var/log/letsencrypt/letsencrypt.log]]</code>
  
Line 78: Line 78:
  
 
== See also ==
 
== See also ==
 +
* {{certbot cmd}}
 
* {{certbot}}
 
* {{certbot}}
 
* {{CA}}
 
* {{CA}}
  
 
[[Category:IT Security]]
 
[[Category:IT Security]]

Latest revision as of 09:34, 2 June 2022

certbot[1] is a fully-featured, extensible client for the Let’s Encrypt CA (or any other CA that speaks the ACME protocol defined in 2015-2016) that can automate the tasks of obtaining certificates and configuring webservers to use them. This client runs on Unix-based operating systems.


Installation[edit]

You can additionally install certbot plugins:

Ubuntu files[edit]

  • Binaries: certbot and letscrypt
  • Configuration files:
/etc/letsencrypt/
/etc/letsencrypt/renewal/

Examples[edit]


Create a wildcard certificate:

certbot -d *.YOUR_DOMAIN_NAME.com --manual --preferred-challenges dns certonly


Request a certificate[edit]


  • Stop your webserver:
systemctl stop nginx
  • certbot certonly --standalone --preferred-challenges http -d YOUR_DOMAIN_NAME.com
Client with the currently selected authenticator does not support any combination of challenges that will satisfy the CA. You may need to use an authenticator plugin that can do challenges over DNS.


  • certbot certonly --standalone --agree-tos --preferred-challenges dns -d *.YOUR_DOMAIN_NAME.com (You will be asked for information)
None of the preferred challenges are supported by the selected plugin


nginx.conf

ssl_certificate /etc/letsencrypt/live/www.example.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/www.example.com/privkey.pem;
openssl x509 -text -noout -in cert.pem


certbot certonly --standalone


certbot --nginx
Saving debug log to /var/log/letsencrypt/letsencrypt.log
The requested nginx plugin does not appear to be installed


Activities[edit]

See also[edit]

  • https://certbot.eff.org/docs/intro.html
  • https://certbot.eff.org/docs/using.html#changing-a-certificate-s-domains
  • Advertising: