store | blogs | forums | twitter | facebook | wiki | mailing lists | downloads | support portal
Atomic Secure Linux
It is currently Sat May 18, 2013 12:37 pm

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic Share/Bookmark  [ 10 posts ] 
Author Message
 Post subject: how to move SSL cert to new server
Unread postPosted: Wed Oct 06, 2010 7:38 pm 
Offline
Forum Regular
Forum Regular

Joined: Wed May 12, 2010 5:40 pm
Posts: 137
I have inherited a domain from another server...how to move ssl cert to new server...

Is this done through Plesk by simply cut and paste the cert and key data into a new server cert, or is it done by moving the certs and key files themselves onto the server, into the erc/httpd/ssl.crt directory along with the server cert...

If that is done, what else is needed to secure the domain...
thanks


Top
 Profile  
 
 Post subject: Re: how to move SSL cert to new server
Unread postPosted: Thu Oct 07, 2010 2:00 pm 
Offline
Forum Regular
Forum Regular

Joined: Tue Jul 15, 2008 2:38 pm
Posts: 704
Location: Sweden
Hm, might be problematic to move the cert if the servername has changed becuase the servername is embedded in the cert.


Top
 Profile  
 
 Post subject: Re: how to move SSL cert to new server
Unread postPosted: Thu Oct 07, 2010 2:58 pm 
Offline
Forum Regular
Forum Regular

Joined: Wed Jan 02, 2008 3:21 pm
Posts: 515
Location: United Kingdom
Recently transferred a dozen websites (w/SSL) one-by-one to a new server (Plesk 8.6 on old, Plesk 9 on new).

On old server:
1. Go to existing domain certificate and note name/details/bit-depth/Private key/Certificate/CA certificate.

On new server:
1. Create domain name (exactly the same as on old).
2. Click 'Add SSL Certificate'.
3. Paste/duplicate the details field-for-field from old server (CSR isn't required).
4. Set-up domain, assign IP/cert as usual.
5. Test domain via https://IP-ADDRESS, check the certificate details, it should correct; there will still be an alert in browser as IP doesn't match cert.

This might be as biggles suggests, because although the full server name was not the same (server1.domain.tld1, server2.domain.tld2), the domain bit in the middle was. But if you have IP addresses assigned on new server, test with one domain and see how it goes.

Good luck!


Top
 Profile  
 
 Post subject: Re: how to move SSL cert to new server
Unread postPosted: Fri Oct 08, 2010 5:57 pm 
Offline
Long Time Forum Regular
Long Time Forum Regular

Joined: Thu Dec 09, 2004 11:19 am
Posts: 1843
I've only done this once (from different hosting provider to us) but didn't have any problems.

Essentially as long as the the certificate, private key (and CSR) are copied it just works.

_________________
--------------------------------
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>


Top
 Profile  
 
 Post subject: Re: how to move SSL cert to new server
Unread postPosted: Mon Oct 11, 2010 11:54 am 
Offline
Forum Regular
Forum Regular

Joined: Mon Apr 10, 2006 12:55 pm
Posts: 656
Worst case scenario is you can hack Apache to load it manually. Just means that Apache will ignore changes that Plesk makes.

All you should need are the cert files off the server. I've never had a problem moving certs either by copy and paste or by moving the file.

_________________
"Its not a mac. I run linux... I'm actually cool." - scott


Top
 Profile  
 
 Post subject: Re: how to move SSL cert to new server
Unread postPosted: Tue Oct 12, 2010 10:50 am 
Offline
Forum Regular
Forum Regular

Joined: Wed May 12, 2010 5:40 pm
Posts: 137
It worked by just copying the text files from one server, then using plesk, i "added" cert by pasting into their respective areas for the new cert...however it did take a few days for everything to resolve and be recognized by the browsers...

1.added ip to server
2.created domain in plesk
3.cut and paste cert to new server
4.control panel assignment of dns for domain and ip
Also designated in plesk for the http and https files to be from same directory for that domain, which would be the http directories, otherwise there must be two sets of files.
5. verification testing
6.Works!

Thanks for the guidance...next time it might be more cost efficient to just get a new cert...


Top
 Profile  
 
 Post subject: Re: how to move SSL cert to new server
Unread postPosted: Thu Oct 21, 2010 12:31 pm 
Offline
Forum Regular
Forum Regular

Joined: Wed May 12, 2010 5:40 pm
Posts: 137
Things seem to be functioning correctly in the browsers, but I am getting this error regarding the cert for this ip...
Quote:
[warn] RSA server certificate CommonName (CN) `www.gertrudezachary.com' does NOT match server name!?


upon looking around I find referrences to editing the vhost.conf file for that domain...I do not have a vhost.conf file for that domain, or ANY domain on my server!

I am using plesk 9.2.5 or whatever is the latest, and my cert was configured in plesk, as were all the domain configurations...

Any ideas?


Top
 Profile  
 
 Post subject: Re: how to move SSL cert to new server
Unread postPosted: Thu Oct 21, 2010 1:13 pm 
Offline
Forum Regular
Forum Regular

Joined: Sat Mar 28, 2009 6:58 pm
Posts: 802
Location: Germany
you don't need to have a vhost.conf. If you want one you would have to
- create it manually and additionally to the httpd.include file under /var/www/vhhots/domain.tld/conf
- edit it with the settings you want to make
- and than run
Code:
/usr/local/psa/admin/sbin/websrvmng --reconfigure-vhost --vhost-name=domain.tld

-restart apache

If the cert is used with an shared ip that is used for multi hosted sites that warning is inevitable in my opinion.
See this KB from Parallells:http://kb.parallels.com/1500


Top
 Profile  
 
 Post subject: Re: how to move SSL cert to new server
Unread postPosted: Thu Oct 21, 2010 2:30 pm 
Offline
Forum Regular
Forum Regular

Joined: Wed May 12, 2010 5:40 pm
Posts: 137
I have cleaned up my cert, which was missing a geotrust CA...seems that everything that is not geotrust must update their certs with a new CA since July 2010...
thanks for the info on the vhost.conf file...guess this is why i have plesk...


Top
 Profile  
 
 Post subject: Re: how to move SSL cert to new server
Unread postPosted: Thu Oct 21, 2010 4:54 pm 
Offline
Long Time Forum Regular
Long Time Forum Regular

Joined: Sat Aug 20, 2005 9:30 am
Posts: 2812
Location: The Netherlands
Also see Plesk's documentation on vhost.conf: Including Directives into Web Server Configuration File.

_________________
Lemonbit Internet Dedicated Server Management


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic Share/Bookmark  [ 10 posts ] 

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group