Configuring SSL for your website and e-mail

If you own a private virtual or dedicated server then you can configure your own SSL certificate for your website and its mail servers like Dovecot and Postfix. The shared account holders have to use pre-configured SSL certificate and have no option to setup their own SSL.

1. Login to your control panel.
2. Select the domain name from drop-down menu on the top left.
3. Click on "Edit Domain", expand "Enabled features", check on "SSL website enabled?" and click on "Save Domain" button.
4. Expand "Server Configuration" on the left menu and click on "Manage SSL Certificate".
5. Please make necessary changes using "Current Certificate", "Signing Request", "Self-Signed Certificate", "New Certificate" and "CA Certificate" tabs.

In case if you intend to use your server to send and receive e-mails, you also need to set the same SSL key for Postfix and Dovecot. The quickest way to do that would be to go into Server Configuration -> Manage SSL Certificates, and click "Copy to Postfix" and "Copy to Dovecot". After that, restart Postfix through your control panel or by launching the service postfix restart command in SSH. Once you've done that configure your mail client to use port 110 for POP3, port 465 or 587 for SMTP, port 993 for IMAP.

If you want your website to always be redirected to secure pages please SSH into your server and add the following code to your website's .htaccess file:

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

If above code doesn't work for you, please try this one instead:

RewriteCond %{SERVER_PORT} !443
RewriteRule (.*) https://www.your-domain.tld/$1 [R=301,L]