User Tools

Site Tools


unix:letsencrypt:certbot

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
unix:letsencrypt:certbot [2023/07/15 02:00] rodolicounix:letsencrypt:certbot [2023/07/15 02:16] (current) rodolico
Line 44: Line 44:
  
 This creates a certificate named myserver.example.com, with the names smtp, mail and myserver (yes, you have to add that if you want it on the cert). That cert will be located in /etc/letsencrypt/live/myserver.example.com/, a the certificate is valid for all three names. This creates a certificate named myserver.example.com, with the names smtp, mail and myserver (yes, you have to add that if you want it on the cert). That cert will be located in /etc/letsencrypt/live/myserver.example.com/, a the certificate is valid for all three names.
 +
 +==== Editing an alias from a cert ====
 +
 +The above syntax allows you to add/delete aliases from an existing certificate. Simply rerun with the way you want the certificate to look. So, for example, if I wanted to remove the mail alias and add a dovecot alias, I'd do the following.
 +<code bash>
 +<code bash>certbot certonly --authenticator webroot -w /var/www/html --cert-name myserver.example.com -d smtp.example.com,dovecot.example.com,myserver.example.com</code>
 +
 +certbot will ask you if you really want to do this, and then it will do it.
 +
  
 ===== Setting up smtp and imap ===== ===== Setting up smtp and imap =====
Line 68: Line 77:
 </code> </code>
  
-===== dovecot =====+==== dovecot ====
  
 I'm sure there is an easier way to do this, but I just edit /etc/dovecot/dovecot.conf. I understand that Debian goes crazy with the conf.d, but I use a lot of ISPConfig stuff (which doesn't use that), and honestly I think it makes life more difficult. I'm sure there is an easier way to do this, but I just edit /etc/dovecot/dovecot.conf. I understand that Debian goes crazy with the conf.d, but I use a lot of ISPConfig stuff (which doesn't use that), and honestly I think it makes life more difficult.
unix/letsencrypt/certbot.1689404449.txt.gz · Last modified: 2023/07/15 02:00 by rodolico