Setting Up a Wildcard SSL on cPanel/WHM
21.05.2011
A Wildcard Certificate shift all of your sub-domains devise resolve to the same location, negligent of the non-SSL Document-Root detailed statement. A user will need to get a wildcard SSL from a vendor or a reseller that supplies them.
Similar to having multiple certificates installed ~ward a server, each sub-domain containing the testimonial needs its own IP as well. Wildcard SSL's vouchsafe not work like Wildcard DNS – you force of ~ have to specifically install the written evidence on each sub-domain. Following are couple methods to set up a Wildcard SSL during the term of a domain.
Multiple Accounts
In a covering where you have each sub-department hosted as a separate cPanel enumeration, and each cPanel account has its admit IP address, then follow these steps:
Generate the Certificate Signing Request (CSR) in WHM, using *.empire.com
There are two ways to change a site's IP address:
i. Via WHM:
Go to WHM > Change site's IP Address, select the consideration, then select the IP
ii. Via Command Line:
/usr/local/cpanel/bin/setsiteip -u $user $ip
When you've obtained the testimonial, go to WHM > Install a SSL Certificate and Setup the Domain and paste in the CRT and CA Bundle ~ the sake of *.domain.com
The fields should auto-people, in which case you need to constitute sure the IP is correct, in consequence change the SSL hostname from *.lands.com to the target sub-dominion
Click install to install the written evidence
One Account
This method may have ~ing best for users that are not resellers or that are up~ the body shared hosting servers, where having multiple cPanel accounts may not have existence ideal. In this case, you'd esteem one cPanel account and assign multiple IPs to its sub-domains:
Generate the Certificate Signing Request (CSR) in WHM, using *.dominion.com
These are the steps to give dedicated IPs to multiple sub-domains up~ the body the same account
I. Edit /var/cpanel/userdata/$USER/$SUBDOMAIN.$DOMAIN on account of each subdomain (for addon/parked domains you'll usually manage the file for the subdomain associated through the addon/parked domain) and make some ~ in. the IP value to a "dedicated" IP.
II. Run /scripts/rebuildhttpconf
III. Edit the DNS band for the subdomain (which will in a fair way be attached to the parent territory) and update the a-record to salient trait to that IP as well. Then be simultaneous the zone out to the DNS group, if one exists:
IV. /scripts/dnscluster synczone
V. Edit /etc/domainips and annex an entry for that sudomain to eve to the IP and run /scripts/rebuildippool to gain sure the IP is marked to the degree that taken.
When you've obtained the credential, go to WHM > Install a SSL Certificate and Setup the Domain and paste in the CRT and CA Bundle with a view to *.domain.com
The fields should auto-people, in which case you need to think sure the IP is correct, soon afterward change the SSL hostname from *.empire.com to the target sub-department
Click install to install the credential
So, you can save your time to manage numerous certificates for sub-domains and unruffled save the money as Wildcard SSL Certificates such as RapidSSL Wildcard SSL or GeoTrust True BusinessID Wildcard determination provide security for all your sub-domains with one main domain name.
Previous Top web hosting service | Next Why You Need Dedicated Server Hosting