OpenSSL - Generate CSR (2024)

A Certificate Signing Request (CSR) is required when applying for an SSL certificate. This CSR (and private key) can be generated on your webserver. To request a wildcard certificate, fill in an * (asterisk) for the subdomain, for example *.sslcertificaten.nl (instead of www.sslcertificates.nl).

General Information

OpenSSL is a command line program for creating and managing certificates, which is often used by UNIX, Linux and BSD distributions. It has also been ported to Windows. It is used in combination with a lot of server products, among which Apache, Lighttpd, several routers and other hardware. In this manual, a description is given on how to use OpenSSL to create a RSA or EEC private key and CSR.

It is practical to save all files and keys in a central folder. The folder used for this purpose varies a lot depending on the distribution. As an example we use /etc/ssl/cert/ in this manual. It is extremely important that this folder is adequately protected!

It is advisable to log onto the server through SSH, so the CSR can easily be copied to the web browser to submit a request.

Generating the CSR with the openssl Command

Connect to the server by using an SSH connection and log in as a root user. Use the cd command to navigate to the folder in which the certificates should be saved:

cd /etc/ssl/certs/

CSR with RSA private key

The following command can be used to generate the RSA Key and CSR:

openssl req -utf8 -nodes -sha256 -newkey rsa:2048 -keyout server.key -out server.csr

CSR with ECC private key

When an ECC key is needed, it's required to enter two commands. One for generating the key, and the 2nd for the CSR:

openssl ecparam -out server.key -name prime256v1 -genkey
openssl req -new -key server.key -out server.csr

Fill in CSR fields

  1. Note: Replace www_sslcertificaten_nl with the domain name the certificate is applied for.
  2. You will now be asked to enter some data, which will be used for the application of the SSL certificate. It is vital for this information to correspond to the whois information of the domain name (which in turn has to correspond with the data at the Chamber of Commerce). For some fields, a standard value is displayed between brackets ( [standard value] )
  3. OpenSSL generates two files: the Private Key (with the name format www_sslcertificaten_nl.key) and the CSR (with the name format www_sslcertificaten_nl.csr)..
  4. Secure the certificate files so no one except the root user has access to it:
    [root@server cert]# chmod 600 *.key *.csr
  5. The CSR can now be shown, using the cat-command::
    [root@server cert]# cat www_sslcertificaten_nl.csr
    The fields Email Address, Optional company name and Challenge password can be left empty when applying for a web server certificate.
    Country Name (2 letter code) [AU]: NL
    State or Province Name (full name) [Some-State]: Noord-Holland
    Locality Name (eg, city) []: Alkmaar
    Organization Name (eg, company) [Internet Widgits Pty Ltd]: Xolphin
    Organizational Unit Name (eg, section) []: ICT
    Common Name (eg, YOUR name) []: www.sslcertificaten.nl
    Email Address []:
    A challenge password []:
    An optional company name []:
    For the Common Name (CN) you should enter the name of the web server the same way the client will address it. In most cases this will be the full domain name, such as for example: www.yourdomainnamehere.nl
    Note: Do not let yourself be confused by the (eg, YOUR name). You should NOT enter your own name here.
    When prompted to enter a challenge password, you can skip this step right away by pressing enter. If you do enter a challenge password, you will at all times be prompted to enter it when starting the web server.

To order a certificate, copy the entire contents of the generated CSR, including the first and last line and all dashes.

Order certficate

OpenSSL - Generate CSR (2024)
Top Articles
Number of 401(k) ‘millionaires’ jumped 41% last year, says Fidelity | CNN Business
Why is it important to be honest?
Navicent Human Resources Phone Number
AllHere, praised for creating LAUSD’s $6M AI chatbot, files for bankruptcy
Pet For Sale Craigslist
Amc Near My Location
Chelsea player who left on a free is now worth more than Palmer & Caicedo
Directions To 401 East Chestnut Street Louisville Kentucky
GAY (and stinky) DOGS [scat] by Entomb
Cinepacks.store
Music Archives | Hotel Grand Bach - Hotel GrandBach
270 West Michigan residents receive expert driver’s license restoration advice at last major Road to Restoration Clinic of the year
Natureza e Qualidade de Produtos - Gestão da Qualidade
Sitcoms Online Message Board
7440 Dean Martin Dr Suite 204 Directions
charleston cars & trucks - by owner - craigslist
Craigslist Farm And Garden Tallahassee Florida
Money blog: Domino's withdraws popular dips; 'we got our dream £30k kitchen for £1,000'
Colorado mayor, police respond to Trump's claims that Venezuelan gang is 'taking over'
Vermont Craigs List
Video shows two planes collide while taxiing at airport | CNN
Itziar Atienza Bikini
Craigslist Mt Pleasant Sc
Publix Super Market At Rainbow Square Shopping Center Dunnellon Photos
How Long After Dayquil Can I Take Benadryl
What Are The Symptoms Of A Bad Solenoid Pack E4od?
Happy Homebodies Breakup
Prot Pally Wrath Pre Patch
Fleet Farm Brainerd Mn Hours
Roanoke Skipthegames Com
January 8 Jesus Calling
Culver's.comsummerofsmiles
Speechwire Login
Spirited Showtimes Near Marcus Twin Creek Cinema
James Ingram | Biography, Songs, Hits, & Cause of Death
Citibank Branch Locations In Orlando Florida
Craigslist Gigs Norfolk
6143 N Fresno St
Panchitos Harlingen Tx
THE 10 BEST Yoga Retreats in Konstanz for September 2024
Kgirls Seattle
Plead Irksomely Crossword
Spn-523318
Craigslist Free Manhattan
Silive Obituary
Ehome America Coupon Code
Senior Houses For Sale Near Me
Gary Vandenheuvel Net Worth
Lawrence E. Moon Funeral Home | Flint, Michigan
The Pretty Kitty Tanglewood
Goosetown Communications Guilford Ct
91 East Freeway Accident Today 2022
Latest Posts
Article information

Author: Ray Christiansen

Last Updated:

Views: 6033

Rating: 4.9 / 5 (49 voted)

Reviews: 80% of readers found this page helpful

Author information

Name: Ray Christiansen

Birthday: 1998-05-04

Address: Apt. 814 34339 Sauer Islands, Hirtheville, GA 02446-8771

Phone: +337636892828

Job: Lead Hospitality Designer

Hobby: Urban exploration, Tai chi, Lockpicking, Fashion, Gunsmithing, Pottery, Geocaching

Introduction: My name is Ray Christiansen, I am a fair, good, cute, gentle, vast, glamorous, excited person who loves writing and wants to share my knowledge and understanding with you.