The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Help moving SSL Key

Discussion in 'General Discussion' started by cybercrypt13, Apr 4, 2006.

  1. cybercrypt13

    cybercrypt13 Member

    Joined:
    Sep 21, 2004
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    I have recently had to move a site from one system to another because of problems with the original server. I am currenty trying to move the SSL keys themselves and am confused.

    The reason for my confusion is Cpanels screens. I go to the old server and view the key detail on the site I am moving. However, the names of each key don't correspond directly to the cpanel screens that allow me to paste the key data into the boxes, so I'm not really sure where to paste each key.

    Is there another method I need to use for this process? I've never used cpanel for this process so really not sure what exactly the best steps are...

    Thanks,
     
  2. Pashio

    Pashio Active Member

    Joined:
    Nov 26, 2005
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
    Hello,

    step: 1
    Please copy following files from old server to new one:

    /usr/share/ssl/certs/yourdomain.com
    /usr/share/ssl/private/yourdomain.com

    Step: 2
    Create a new entry in /usr/local/apache/conf/httpd.conf as:

    *********************************
    <VirtualHost 147.202.36.137:443>
    ServerAdmin webmaster@yourdomain.com
    DocumentRoot /home/username/public_html
    BytesLog domlogs/yourdomain.com -bytes_log
    User username
    Group username
    <IfModule mod_php4.c>
    php_admin_value open_basedir "/home/username/:/usr/lib/php:/usr/local/lib/php:/tmp"
    </IfModule>
    ServerName yourdomain.com
    CustomLog /usr/local/apache/domlogs/yourdomain.com.-ssl_log "%t %{version}c %{cipher}c %{clientcert}c"
    User username
    Group username
    SSLEnable
    SSLCertificateFile /usr/share/ssl/certs/yourdomain.com.crt
    SSLCertificateKeyFile /usr/share/ssl/private/yourdomain.com.key
    SSLCACertificateFile /usr/share/ssl/certs/yourdomain.com.cabundle
    SSLLogFile /var/log/yourdomain.com
    UserDir public_html
    SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
    </VirtualHost>
    </IfDefine>
    *********************************

    Step: 3
    service httpd restart

    This will help you to manually transfer the SSL certificate.
     
  3. AndyReed

    AndyReed Well-Known Member
    PartnerNOC

    Joined:
    May 29, 2004
    Messages:
    2,222
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Minneapolis, MN
    Allow me to correct the last two local paths above:

    /usr/share/ssl/certs/yourdomain.com.crt
    /usr/share/ssl/private/yourdomain.com.key
    Thanks :)
     
  4. Pashio

    Pashio Active Member

    Joined:
    Nov 26, 2005
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6

    Thanks Andy for correction :)
     
Loading...

Share This Page