Skip to content

kemaakpala/TNJSMC-follow-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TNJSMC-follow-app

The Node.js Master Class Follow App

Building A Restful API: ADDING HTTPS SUPPORT

How to Generate ssl certificate

  1. Create a https folder and cd into it
mkdir https
cd https
  1. enter in your terminal the below command to generate a key and cert pem using openssl
openssl req -newkey rsa:2048 -new -nodes -x509 -days 3650 -keyout key.pem -out cert.pem
  1. you'll then get a series of prompts, please see below sample response of the above command:

Generating a 2048 bit RSA private key
..................+++ .....................................................+++
writing new private key to 'key.pem' ----- 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) []: <enter country name>
State or Province Name (full name) []:<enter state>
Locality Name (eg, city) []:<enter city name>
Organization Name (eg, company) []:<enter company name>
Organizational Unit Name (eg, section) []:<enter org unit name>
Common Name (eg, fully qualified host name) []:<enter common name>
Email Address []:

About

The Node.js Master Class Follow App

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published