JOIN OUR AFFILIATE NETWORK

Join our affiliate network and become a local SSL expert

♦ learn more about our program ♦
Menu
picture of tbs certificates
picture of tbs certificates
Certificates
Our products range
Partners
Support
Focus


Generate a CSR for Apache release 1 OVH (base RH 7.2)

1- Generate the private key

  • Connect under root with ssl and access the setup directory of your Apache server.
    cd /usr/local/apache/conf/ssl.key

  • Choose a file's name that fits you and generate the key with the following command:
    openssl genrsa 2048 > www.example.com.key
  • If you want this key to be protected by a password (that will be requested any time you'll restart Apache), add:

    "-des3"   after "genrsa").
  • You can also enhance the quality of your key. To do so, add the instructions below after "genrsa":

    "-rand/var/log/messages".

    It enables random numbers to be used.

Make a backup copy of the .key file!

  • Protect your file with:
    chmod 400 www.example.com.key

2- Create your certificate request (CSR)

  • Go to the CSR repertory:
    cd /usr/local/apache/conf/ssl.csr

  • Use this command to generate the CSR:
    openssl req -new -key ../ssl.key/www.example.com.key > www.example.com.csr

  • The system will then ask you to fill in fields. To do so respect instructions of the page Obtain a server certificate

    Country Name (2 letter code) []: (FR for France for example)
    State or Province Name (full name) [Some-State]
    Locality Name (eg, city) []
    Organization Name (eg, company) []
    Organizational Unit Name (eg, section) []: (free text)
    Common Name (eg, YOUR name) []: (name of the website to be secured)
    Email Address []: (let blank)

3- Follow the order process

  • Use the appropriate link to place your order on our website. See Access an order form
  • Copy/paste the content of the www.exemple.com.csr file in the form.