User Tools

Site Tools


internet:hosting:virtualmin_ssl

This is an old revision of the document!


Virtualmin SSL Issues

Let's Encrypt

:!: Beware of rate limiting at Let's Encrypt. Don't run any more attempts than is absolutely necessary or you may have to wait an hour to try again.

  1. Edit the virtual server you want to SSL-enable
    1. Enable SSL feature
      • A self-signed certificate is automatically created and applied
  2. Configure Let's Encrypt SSL certificate
    1. Don't add mail.domain.tld
      1. Mail clients will still have to accept the cert presented anyway
    2. List the desired SANs
      domain.tld
      www.domain.tld
      autoconfig.domain.tld
      autodiscover.domain.tld
    3. Adjust the auto-renewal interval
      • The default (two months) is safe

Virtualmin → <domain> → Server Configuration → Manage SSL Certificate → Let’s Encrypt (tab)

Request certificate for → Domain names listed here → <list of Subject Alternative Names>

Months between automatic renewal → 2

Encrypt all Traffic for a Site

Virtualmin → <domain> → Services → Configure Website → Aliases and Redirects

Permanent URL redirects → From → / (slash)

Permanent URL redirects → To → https://www.yourdomainname.tld

Apply Let’s Encrypt SSL Cert to System Services

:!: The matching domain name must be included in the SSL certificate.

Virtualmin → <domain> → Server Configuration → Manage SSL Certificate → Current Certificate (tab) → Copy to…

  • Webmin
  • Usermin
  • Postfix
  • Dovecot
  • ProFTPD
The “Copy to Dovecot” button will copy the domain's cert to be the default for IMAP connections. However, if you go to System Settings → Virtualmin Configuration → SSL settings and change “Copy per-IP SSL certificates to Dovecot?” to “Yes”, any domain with SSL and it's own IP will get a separate Dovecot cert for just connections to that IP.
internet/hosting/virtualmin_ssl.1531168101.txt.gz · Last modified: 2018/07/09 14:28 by gcooper