In the wake of the ‘heartbleed’ exploit announcement a client decided now was the time to finish the consolidation all their sites and servers to their Astutium Dedi
As they’re using WHM/Cpanel moving sites between servers is very simple – the hardest part is choosing between using the in-built migration/transfer tools, and the ‘old fashioned’ method of packaging it up at the command line and restoring on the other side – that’s largely influenced by the size of the site/files/emails/databases.
However the actual question was
how to move a ssl certificate from one dedicated machine to another (the site already exists and has been tested)
This turns out to be incredibly simple 🙂
- Using WHM on the ‘destination’ server, transfer the account (sites) if not already done
- Assign the account a dedicated IP address if it doesn’t already have one
- Copy the key, csr, crt, ca(bundle) files from the old server to your local machine; Depending on OS/verions the files will be in
/etc/ssl/
/etc/pki/tls/
/home/(*user*)/ssl/
/usr/local/apache/conf/
/var/cpanel/ssl/installed/certs/
/usr/share/ssl/ - In WHM go to Home »SSL/TLS »Install an SSL Certificate on a Domain
- Fill in the details for Domain (site) and IP
- Paste in the contents of the .CRT file into the Certificate box
- Paste in the contents of the .KEY file into the Private Key box
- Paste in the contents of the .CABUNDLE file into the Certificate Authority Bundle box
- Click Install
Wait for the files to be created on your server and Apache to restart and then test https access to the site