How to manually create a CSR for a self-signed certificate - Gregg Hosting

The affects of Web Hosts on Your Business Website

Here're ways your choice of web hosting service provider impacts the performance of your business:


check

Website loading speed

check

Uptime and availability

check

Customer support

check

Security

check

Server location

How to manually create a CSR for a self-signed certificate

How to manually create a CSR for a self-signed certificate

Overview

You can manually generate a CSR using Secure Shell. To proceed with these procedures, you must have a Shell user configured in your panel and general knowledge of the UNIX Shell.

For further information, read the following articles.

SSH overview: Creating a user with Shell (SSH) access
GreggHost support is unable to help you with these tasks. To accomplish this method, you’ll need a basic understanding of the UNIX shell.

Creating a CSR

Use SSH to connect to your domain. Instructions can be found in the SSH article.
Make sure you’re in your user’s home directory once you’ve logged into your server through SSH:
[server]
$ cd cd cd cd cd cd
Create your private key with OpenSSL and use it to generate the CSR. To open the OpenSSL command line tool, type the following.
[server]
openssl $
Your command prompt now reads OpenSSL>, indicating that you’re ready to run the tasks below.
Enter the following command without a password to generate a new RSA private key:
genrsa -out private.key 2048 OpenSSL>
Making an RSA private key using a 2048-bit modulus
65537 is the number e. (0x10001)
A private key named private.key will be created as a result of this. This is what you’ll use to make the CSR.
Run the following command to generate the CSR: OpenSSL> req -new -sha256 -key private.key -out file.csr
After that, you’ll be asked for the following information:
Your domain name, such as example.com or www.example.com, is entered in the “Common Name” field.

You’re about to be asked to fill out some information that will be used in your certificate request.
What you’re about to type is a Distinguished Name, or DN for short.
There are many fields to fill out, however some can be left blank.
There will be a default value for some fields; if you type ‘.’, the field will be left blank.

Name of the country (2 letter code) [Some-State]: Locality Name [AU]: State or Province Name (full name) (eg, city) []: Name of Organization (eg, company) Organizational Unit Name: [Internet Widgits Pty Ltd] (eg, section) []: Popular Name (eg, YOUR name) []: []: []: []: []: []: []: []

Please add the following ‘additional’ properties to your certificate request.
A password for a challenge []: (Type a. and press ENTER.)
A firm name is optional []:
(Type a. and press ENTER.)
Close the OpenSSL prompt by typing:
OpenSSL> close
Your CSR has now been generated. This file is titled file.csr, according to the command you used earlier. The contents can be viewed by using the following command:

cat file.csr [server]$
You can either copy and paste this into a file on your local computer or use FTP to retrieve the file from your server.