Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

SSL site migration

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
1 post • Page 1 of 1
dvazart
Posts: 1
Joined: Wed Jan 28, 2015 8:07 am

SSL site migration
  • Quote

Post by dvazart » Wed Jan 28, 2015 9:15 am

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: Select all

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) <[email protected]>
sub   2048R/3BXXXXD9 2013-11-26 [expires: 2015-02-11]

pub   2048D/DCXXX68 2014-09-18
uid                  XXXXXXXXXX (www.XXXXX.com) <[email protected]>
sub   2048g/00XXX374 2014-09-18

pub   2048D/F7XXX781 2014-10-01
uid                  XXXXXXXXXX (www.XXXXX.com) <[email protected]>
sub   2048g/19XXX113 2014-10-01

Code: Select all

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: Select all

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: Select all

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,
Top


Post Reply
  • Print view
1 post • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password