19 Jun, 2010
How to Install SSL Certificate on a Subdomain within Plesk 9
1. Add your subdomain
You can do this as a normal subdomain or as a standalone domain.
2. Add your certificate to Plesk
Use the Plesk control panel to add your certificate. Where the shortcoming comes into play is that Plesk will continue to use the default certificate.
3. Find your certificate
Head over to /usr/local/psa/var/certificates
Take note of the file name cert-xxxxxx that has today’s creation date. There may be two if you installed a CA certificate. You will need to determine which file is the normal certificate and which one is the CA one for the step 5.
4.Copy the include file
Go to /var/www/vhosts/sub.domain.com/conf and open the httpd.include file
Find where it has
ServerName sub.domain.com:443
Copy the entire VirtualHost block for JUST the SSL portion. (from <VirtualHost xx.xx.xx.xx:443> to </VirtualHost>)
5. Make your include file
Head over to /etc/httpd/conf.d and make a file. Call it something like z0-subdomain.conf. The file just needs to load after ssl.conf but before zz010_psa_httpd.conf. Paste what you copied from step 4 into the file and then set the certificate file names from step 3 into these following places.
SSLCertificateFile /usr/local/psa/var/certificates/cert-xxxxxx
If you have a CA certificate, you must also add this line just below:
SSLCACertificateFile /usr/local/psa/var/certificates/cert-xxxxxx
6. Restart Apache
service httpd restart
Most of these instructions were taking from this page, but they left the CA certificate step. This is very important since certain browsers do not trust all intermediate CA’s. (mostly Apple products and some cell phones)
Similar Posts:
- jQuery AJAX Loading – Display Images or Text Until Script is Finished (Part 2)
- Find Years and Months Between Two Dates in PHP
- PHP Unable to Copy Files from Upload (Plesk and PHP safe_mode)
- jQuery Loading – Display Images or Text Until Script is Finished
- PHP Header Redirect & Sessions Fix


February 8th, 2011 @ 3:56 pm
Life saver mate
Cheers
Eugene
October 13th, 2011 @ 1:29 am
Found this very handy. It wasn’t quite what I was trying to do, but worked anyway.
I had a wildcard certificate for the domain the Plesk server uses, and wanted to set that as the SSL certificate for all hosted sites, so that I could provide SSL for all sites without having to obtain additional IP addresses for each one.
Using domain aliases, I could then refer to each site by its own domain for http traffic, and its subdomain of the server domain for https traffic.
I still haven’t worked out how to configure this globally, but these instructions have at least given me a way to configure individual subdomains.