• Home
  • The Song
  • The Avatar
  • The Cat
  • Contact the Cat

Gyp the Cat dot Com

How to Create a CSR with Nginx using OpenSSL
Business, internet

How to Create a CSR with Nginx using OpenSSL

Creating a CSR to enable you to get an SSL certificate cannot be easier on Nginx especially when you use OpenSSL.

SSH onto your Linux box as usual.

Type in:

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

You will be greeted with output like the following, what you need to type in is highlighted in bold, finish each line by pressing return.

Generating a 2048 bit RSA private key
…………………………..+++
…………………………………+++
writing new private key to ‘server.key’
—–
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter ‘.’, the field will be left blank.
—–
Country Name (2 letter code) [AU]:UK
State or Province Name (full name) [Some-State]:Some County
Locality Name (eg, city) []:Some City
Organization Name (eg, company) [Internet Widgits Pty Ltd]:Gyp the Cat dot Com
Organizational Unit Name (eg, section) []:Website
Common Name (e.g. server FQDN or YOUR name) []:www.gypthecat.com
Email Address []:[email protected]

Please enter the following ‘extra’ attributes
to be sent with your certificate request
A challenge password []:
An optional company name []:

If you’ve got a wild care SSL cert you can use *.gypthecat.com in the Common Name section.

We’ll probably need to paste the CSR into a web form from your SSL provider.

more server.csr

Copy and paste the entire output (including the —– lines) into the necessary box.  There you go, all done!

If you want to read what to do with the SSL certificate you get back read on how to get your Nginx SSL certificate functioning.

 

Related

Written by gyp - July 11, 2012 - 4967 Views
Tags | cryptography, nginx, security

You Might Also Like

ISC(2) CISSP Revision Notes – Overarching Themes for the CISSP

November 25, 2013

IPSec VPN Host to Host on Ubuntu 14.04 with strongSwan

June 5, 2015

ISC(2) CISSP Revision Notes – Cryptography

November 25, 2013

4 Comments

  • How to Install a SSL Certificate on Nginx | Gyp the Cat dot Com July 15, 2012 at 8:01 pm

    […] 2012 in internet, Uncategorized with No comments Tweet Last time I showed how easy it is to create an SSL request on Nginx, this time I’ll show you how easy it is to get your site up and running with […]

    Reply
  • Installing NginX + PHP on Mac OS X Mountain Lion for Symfony2 | Erics Blog July 31, 2012 at 10:02 am

    […] SSL support, you need /usr/local/nginx/server.key and /usr/local/nginx/server.crt. You can create a CSR and get a certificate at CaCert if your domain is reachable from outside (dyndns?). Otherwise, just […]

    Reply
  • Denny November 20, 2012 at 4:35 pm

    Thank you for the grat tutorial.

    Reply
  • aaa January 12, 2015 at 2:52 pm

    Hello, everything is going perfectly here and ofcourse every one is sharing
    data, that’s actually fine, keep up writing.

    Reply
  • Please Post Your Comments & Reviews
    Cancel reply

    Your email address will not be published. Required fields are marked *

    Previous Post
    Next Post

    Latest Posts

    • How to Convert CSV to Parquet Easily with Python on Linux Shell
    • Kusto Geolocation IP Lookup
    • Monitoring Tor Usage in Azure Sentinel, ASC, MDATP and ALA
    • HTTP to HTTPS Redirect on Azure CDN
    • Strongswan IPSec (Including Cryptomap) to Microsoft Azure Virtual Network Gateway
    • Black Ops 3 NAT Type Strict & PS4 NAT Type 3 with pfSense Fixed!
    • Sorry for the lack of posts
    • How to Block Internet Access with Group Policy (GPO)
    • Enforcing Microsoft Office 365 and Azure Tennancy with McAfee Web Gateway (MWG)
    • Scanning Subnet for Issuing Certificate Authority with OpenSSL

    Top Posts & Pages

    • How to Block Internet Access with Group Policy (GPO)
      How to Block Internet Access with Group Policy (GPO)
    • How to Configure Windows 2012 NPS for Radius Authentication with Ubiquiti Unifi
      How to Configure Windows 2012 NPS for Radius Authentication with Ubiquiti Unifi
    • Kusto Geolocation IP Lookup
      Kusto Geolocation IP Lookup
    • Tinyproxy A Quick and Easy Proxy Server on Ubuntu
      Tinyproxy A Quick and Easy Proxy Server on Ubuntu
    • Monitoring Tor Usage in Azure Sentinel, ASC, MDATP and ALA
      Monitoring Tor Usage in Azure Sentinel, ASC, MDATP and ALA
    • How to DNSPerf on Ubuntu 14.04 with Installation and Quick Start
      How to DNSPerf on Ubuntu 14.04 with Installation and Quick Start
    • How to Add Different Disclaimers using alterMIME and Postfix based on Domain
      How to Add Different Disclaimers using alterMIME and Postfix based on Domain
    • Blocking Countries on Nginx without the GeoIP Module
      Blocking Countries on Nginx without the GeoIP Module
    • How to Enable Squid Anonymous Stealth Mode
      How to Enable Squid Anonymous Stealth Mode
    • Configuring Suite B, VPN-A and VPN-B in IPSec with Strongswan
      Configuring Suite B, VPN-A and VPN-B in IPSec with Strongswan

    Tags

    apache2 azure azure log analytics blops business centos cheating cissp cloudflare cryptography dns game google gyp internet iphone ipsec isc linux mac marketing microsoft mw2 mx mysql nginx pfsense postfix proxy ps3 qualification radius revision security seo smtp socks squid ssh strongswan tinyproxy ubuntu windows 2012 wordpress xdecrypt.com
    Gyp the Cat dot Com

    Some rights retained Gyp the Cat Dot Com