How to add a wildcard or multi-domain SSL certificate

This tutorial covers how to add a wildcard or multi-domain SSL certificate to multiple Virtual servers.

You will need an IP address dedicated to this purpose -- you can obtain IP addresses from the ISP hosting your server.

This tutorial assumes you have first logged into Virtualmin.

  1. Click 'Addresses and Networking' -> 'Shared IP Addresses'.
  2. Enter the IP address for this new SSL certificate in the 'Shared addresses for any servers ' field.
  3. Click 'Allocate a new shared IP address'.
  4. Click 'Save'.
  5. Choose the domain for which you would like to add the SSL Certificate. You can do that by selecting the domain name from the drop-down box on the top-left.
  6. Click 'Server Configuration' -> 'Change IP Address'.
  7. Select the new IP address you added from the 'Shared Address' dropdown list.
  8. Click 'Change now'.
  9. Click Edit Virtual Server.
  10. Click Enabled features.
  11. Check the 'SSL website enabled?' checkbox.
  12. Click Save Virtual Server.

    At this point, you have a self-signed SSL Certificate. That means your communications are secured, but since this certificate wasn't generated by a certificate authority, your users will receive a security warning every time they access the site.

    It's recommended that you get a commercial certificate -- the following steps detail how to obtain and install one.

  13. Click Server Configuration.
  14. Click Manage SSL Certificate.
  15. Click Signing Request.
  16. Enter the domain name you wish to use for SSL in the Server Name field.
  17. Enter your email address in the Email Address field.
  18. Enter your business name or organization in the Organisation field.
  19. Click Generate CSR Now
  20. This next step you have to do on your own. Take the resulting "CSR", and take it to one of the many companies able to create SSL certificates. Have them use the CSR you made to generate your SSL Certificate.
  21. Click New Certificate.
  22. Paste in the contents of the SSL Certificate you received into the Signed SSL certificate field.
  23. Keep the Matching private key provided by Virtualmin.
  24. Click Install Now.

You should now be able to access your site securely by using https://example.com, where example.com is the domain name you used while generating your SSL Certificate.

Steps to repeat

You've now successfully added your SSL certificate to one Virtual Server. You will need to repeat the following steps for each additional Virtual Server you wish to have using the new wildcard or multi-domain SSL certificate.

  1. Choose the domain for which you would like to add the SSL Certificate. You can do that by selecting the domain name from the drop-down box on the top-left.
  2. Click 'Server Configuration' -> 'Change IP Address'.
  3. Select the new IP address you added from the 'Shared Address' dropdown list.
  4. Click 'Change now'.
  5. Click Edit Virtual Server.
  6. Click Enabled features.
  7. Check the 'SSL website enabled?' checkbox.
  8. Click Save Virtual Server