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
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.
If you have a CA certificate, you must also add this line just below:
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)
- 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