I am no SSL expert, but here is how I got it done in WHM:
1) Under SSL/TSL, choose Generate an SSL Certificate and Signing Request. Complete all the fields and click Create
2) Next do Install an SSL Certificate and Setup the Domain. Once you have entered the domain name (of an existing account), the certificate info is fetched automatically. Click Do It.
When I tried it just now, the response from WHM indicated that the certificate could be validated, but that Apache gave an error. The actual error was however not shown. So I went and edited the httpd.conf file manually and added the following:
CODE
<IfDefine SSL>
<VirtualHost 12.34.56.78:443>
ServerAlias www.mydomain.com mydomain.com
ServerAdmin webmaster@mydomain.com
DocumentRoot /home/forum/public_html
BytesLog domlogs/mydomain.com-bytes_log
ServerName www.mydomain.com
<IfModule mod_userdir.c>
Userdir disabled
Userdir enabled myuser
</IfModule>
<IfModule mod_php4.c>
php_admin_value open_basedir "/home/forum:/usr/lib/php:/usr/local/lib/php:/tmp"
</IfModule>
User myuser
Group myuser
SSLEngine on
SSLCertificateFile /usr/share/ssl/certs/mydomain.com.crt
SSLCertificateKeyFile /usr/share/ssl/private/mydomain.com.key
CustomLog domlogs/mydomain.com combined
ScriptAlias /cgi-bin/ /home/theuser/public_html/cgi-bin/
</VirtualHost>
</IfDefine>
You obviously need to replace the IP address, domain name and username with the relevant data. After editing httpd.conf, restart Apache.
When browsing your website via https you will get a warning that the certificate is not signed by a trusted party (because it was self-signed). You can simply accept and choose to import the certificate into your browser.
Hope this helps