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.

Adding SSL certs

Discussion in 'General Discussion' started by WildWayz, Feb 20, 2002.

  1. WildWayz

    WildWayz Well-Known Member

    Joined:
    Aug 14, 2001
    Messages:
    209
    Likes Received:
    0
    Trophy Points:
    16
    Hi ya

    What is the exact instructions on how to add an SSL certificate?
    I have a client who has a dedicated IP and wants the SSL cert for
    ssl.domain.com.
    When I add it via WHM, Apache falls over and won't start again until I edit httpd.conf and delete the entry.

    Soooo what is the exact process from making the subdomain to adding it?

    Thanks

    James
     
  2. Stephen

    Stephen Active Member

    Joined:
    Aug 14, 2001
    Messages:
    39
    Likes Received:
    1
    Trophy Points:
    8
    from those entries you see something like

    SSLCertificateFile /usr/share/ssl/certs/DOMAIN.COM.crt
    SSLCertificateKeyFile /usr/share/ssl/private/DOMAIN.COM.key

    put the certificate in /usr/share/ssl/certs/DOMAIN.COM.crt
    put the key in /usr/share/ssl/private/DOMAIN.COM.key

    stop apache: /usr/local/apache/bin/apachectl stop
    then /usr/local/apache/bin/apachectl startssl
     
  3. WildWayz

    WildWayz Well-Known Member

    Joined:
    Aug 14, 2001
    Messages:
    209
    Likes Received:
    0
    Trophy Points:
    16
    so the .crt and .key are uploaded by me? or does WHM create them and all I have to do is move them?

    James
     
  4. Stephen

    Stephen Active Member

    Joined:
    Aug 14, 2001
    Messages:
    39
    Likes Received:
    1
    Trophy Points:
    8
    I did this quiet long time ago. You just need to make sure you have the right certificate at
    /usr/share/ssl/certs/domain.com.crt
    or wherever is listed in httpd.conf

    and key at
    /usr/share/ssl/private/domain.com.key

    What I did was I emptied /usr/share/ssl/certs/domain.com.crt then filed it with my certificate, same for the key then restart apache ssl then it will work.
     
  5. WildWayz

    WildWayz Well-Known Member

    Joined:
    Aug 14, 2001
    Messages:
    209
    Likes Received:
    0
    Trophy Points:
    16
    Thanks - will give it a go when I wake up :D

    --James
     
  6. First Faze

    First Faze Well-Known Member

    Joined:
    Jan 30, 2002
    Messages:
    47
    Likes Received:
    0
    Trophy Points:
    6
    I don't know if this helps anyone but I kept on trying to add SSL certs and it would work fine but after a couple of restarts to httpd it would start to fail loading and I simply added an &Ifdefine SSL& &/Ifdefine& around the SSL vhost directive and everything works great now!
     
Loading...

Share This Page