Posted 2009-01-22 21:18 by andreychek
This tutorial covers how to add an SSL certificate to a Virtual server.
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.
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.
Click 'Server Configuration' -> 'Change IP Address'.
Click the radio button next to 'Use private address' in the 'New IP address' section.
Enter your Virtual Server's new private IP address you obtained for this SSL certificate in the 'Use private address' field.
Click 'Change now'.
Click
Edit Virtual Server.Click
Enabled features.Check the 'SSL website enabled?' checkbox.
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.
Click
Server Configuration.Click
Manage SSL Certificate.Click
Signing Request.Enter the domain name you wish to use for SSL in the
Server Namefield.Enter your email address in the
Email Addressfield.Enter your business name or organization in the
Organisationfield.Click
Generate CSR NowThis 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.
Click
New Certificate.Paste in the contents of the SSL Certificate you received into the
Signed SSL certificatefield.Keep the
Matching private keyprovided by Virtualmin.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.
