How to install godaddy's ssl on apache

9,711

So when you generated your CSR you would have specified a CN (Common Name) that corresponds to the specific hostname that you want to use the certificate for.1 Where ever this hostname lives is where you want to install the certificate. For the sake of sane examples let's use www.example.com as the hostname for your certificate.

When you generated the CSR you would have created two files,

  1. A cryptographic key
  2. The CSR you shipped off to GoDaddy

So now that you have the signed certificate back from them you'll need to place the following three pieces of information on the webserver that hosts www.example.com

  1. The cryptographic key generated when you made the CSR
  2. The mysite.crt file provided by GoDaddy
  3. The sf_bundle.crt file provided by GoDaddy

Now go to the Apache config file for the www.example.com host. You'll want to add these lines

SSLEngine on
SSLProtocol -ALL +SSLv3 +TLSv1
SSLCipherSuite ALL:!aNULL:!ADH:!eNULL:!LOW:!EXP:RC4+RSA:+HIGH:+MEDIUM

SSLCertificateFile /etc/httpd/ssl/mysite.crt
SSLCertificateKeyFile /etc/httpd/ssl/mysite.key
SSLCertificateChainFile /etc/httpd/ssl/sf_bundle.cer

Replace the paths as necessary, but just make sure you put them someplace safe with root only permissions. Restart httpd and, so long as you did everything right, it should work.

1: Not 100% accurate but let's ignore wildcards for the moment.

Share:
9,711

Related videos on Youtube

Lynob
Author by

Lynob

Updated on September 18, 2022

Comments

  • Lynob
    Lynob over 1 year

    I'm setting up a mail server for a company, I've done everything, generated csr, everything is working, I just need to add godaddy's ssl, the instructions given by godaddy aren't clear, i need some help, we have a centos dedicated server and apache, Any help on how to set it up?

    By the way, the main site is hosted on another server, the mail server is used only for serving mails, we used mx records to point the mail server to the main domain, do we have to install ssl on both servers or just one?

    • Scott Pack
      Scott Pack about 11 years
      What do you mean by "add godaddy's ssl"? Are you talking about the signed certificate they generated for you or is there an intermediate certificate involved?
    • Lynob
      Lynob about 11 years
      @ScottPack I'm talking about the signed certificate they generated, they gave me sf_bundle.crt and mysite.crt i have to install them on the server, the instructions aren't very clear, besides we have 2 servers one for website.com and the second is for mail.website.com, where should i install the certificate?