Find the answer to your Linux question:
Results 1 to 3 of 3
hi all, please, Help me import certificate to Apache ? step by step. thanks...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2011
    Posts
    2

    import certificate to Apache (https)


    hi all,
    please,
    Help me import certificate to Apache ?
    step by step.

    thanks

  2. #2
    Just Joined!
    Join Date
    Aug 2011
    Posts
    2

    step by step

    Quote Originally Posted by linhtm7 View Post
    hi all,
    please,
    Help me import certificate to Apache ?
    step by step.

    thanks
    Installing your SSL Server Certificate - Official Red Hat Linux Apache/SSL Server
    Step one: Copy your certificate to file
    You will receive an email from the Registration Authority when your certificate request has been approved that contains a link to a location where your certificate may be obtained. Clicking on this link will bring up a browser window that contains the details of your issued certificate and includes a section that looks something like the following:

    -----BEGIN CERTIFICATE-----
    MIAGCSqGSIb3DQEHAqCAMIACAQExADALBgkqhkiG9w0BBwGggD CCAmowggHXAhAF
    UbM77e50M63v1Z2A/5O5MA0GCSqGSIb3DQEOBAUAMF8xCzAJBgNVBAYTAlVTMSAw
    (.......)
    E+cFEpf0WForA+eRP6XraWw8rTN8102zGrcJgg4P6XVS4l39+l 5aCEGGbauLP5W6
    K99c42ku3QrlX2+KeDi+xBG2cEIsdSiXeQS/16S36ITclu4AADEAAAAAAAAA
    -----END CERTIFICATE-----

    Copy everything you see between and including the lines that look like
    -----BEGIN CERTIFICATE-----
    and
    -----END CERTIFICATE-----

    and paste it into an appropriately named text file e.g. server.crt

    Copy this certificate file into the directory that you will be using to hold your certificates.

    e.g. /etc/httpd/conf/ssl.crt/

    In this example we will use:

    /etc/httpd/conf/ssl.crt/ as the location where certificates will be stored
    /etc/httpd/conf/ssl.key/ as the location where the server's private key is stored.
    /etc/httpd/conf/ca-bundle/ as the location where the CA bundle file will be stored
    It is recommended that you make the directory that contains the private key file only readable by root.

    Step two: Install the CA Certificates
    You will need to install the CA certificates in order for your webserver to use your SSL certificate properly. Apache users do not neded to install these certificates individually. Instead you can install the CA certificates using a 'bundle' method.

    In the Virtual Host settings for your site, in the httpd.conf file, you will need to complete the following:

    Copy the PEM format Bundled CA certificate file (full CA chain) to the directory in which ca-bundled files are stored e.g. /etc/httpd/conf/ssl.crt/

    Add the following line to the SSL section of the httpd.conf (assuming /etc/httpd/conf/ssl.crt/ is the directory to where you have copied the CA Bundle file). if the line already exists amend it to read the following:
    SSLCACertificateFile /etc/httpd/conf/ssl.crt/cachainpem.txt

    If you are using a different location and certificate file names you will need to change the path and filename to reflect your server.

    The SSL section of the updated httpd config file should now read something similar to this example (depending on your naming and directories used):

    SSLCertificateFile /etc/httpd/conf/ssl.crt/server.crt

    SSLCertificateKeyFile /etc/httpd/conf/ssl.key/server.key

    SSLCACertificateFile /etc/httpd/conf/ssl.crt/cachainpem.txt

    Save your httpd.conf file and restart Apache.

  3. #3
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,533
    It looks like you solved your own problem and posted a VERY helpful account of how to install the SSL certificates. Thanks, and welcome to the Linux Forums!
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •