Hello everyone,
I am migrating a site that uses an SSL certificate purchased at Hostmonster (COMODO CA Limited).
The site is hosted on a VPS (pure LAMP) with the following certificates:
Code:
root@xxxx:~# gpg --homedir /var/www --list-key
gpg: WARNING: unsafe ownership on homedir `/var/www'
/var/www/pubring.gpg
--------------------
pub 2048R/E4BXXXC1 2013-11-26 [expires: 2015-02-11]
uid XXXXXXXX - 2014 (www.XXXXX.com) <info@XXXXXXX.com>
sub 2048R/3BXXXXD9 2013-11-26 [expires: 2015-02-11]
pub 2048D/DCXXX68 2014-09-18
uid XXXXXXXXXX (www.XXXXX.com) <marketing@XXXXXX.com>
sub 2048g/00XXX374 2014-09-18
pub 2048D/F7XXX781 2014-10-01
uid XXXXXXXXXX (www.XXXXX.com) <marketing@XXXXXX.com>
sub 2048g/19XXX113 2014-10-01
Code:
root@xxxx:~# cat /etc/apache2/sites-enabled/www.xxxxxx.com-sll
...
# SSL Engine Switch:
# Enable/Disable SSL for this virtual host.
SSLEngine on
# A self-signed (snakeoil) certificate can be created by installing
# the ssl-cert package. See
# /usr/share/doc/apache2.2-common/README.Debian.gz for more info.
# If both key and certificate are stored in the same file, only the
# SSLCertificateFile directive is needed.
SSLCertificateFile /etc/ssl/www.xxxxx.com.crt
SSLCertificateKeyFile /etc/ssl/www.xxxxx.com.key
...
Code:
root@xxxx:~# ls /etc/ssl/
certs openssl.cnf private www.xxxxxx.com.crt www.xxxxxx.com.key
I want to migrate this certificate to a Debian VPS with VestaCP.
Note:
I already try to "copy and paste" the certificates manually in VestaCP, but I got this error message:
Code:
Error: SSL Certificate is not valid
Both servers have different IP addresses but I can switch the addresses between the servers.
I have also a third certificate .CSR, I suppose this is the csr generated on the old server, but i don't know.
So any walkthrough or help with this be welcome !
Thanks,