Skip to content
+91-7795206615
|
info@habilelabs.io

  • Home
  • About
  • Services
    • Custom Application Development
    • UI/UX Designing
    • Web Application Development
    • Offshore Product Services
    • Technical Outsourcing
    • ERP Services
  • Company
    • Careers
    • Case Studies
  • Specialization
    • Frontend Frameworks
      • Angular
      • ReactJS
      • VueJS
      • HTML / CSS
      • Javascript /Jquery
      • Bootstrap
      • Material design
    • Backend Frameworks
      • NodeJS
      • Meteor
      • GraphQL
      • Loopback
      • Salesforce
      • Spring Boot
      • Odoo
      • Laravel
    • Database / ORM
      • MySQL
      • PostgreSQL
      • Oracle
      • MongoDB
      • Google Firebase
      • Mongoose
      • Sequelize
      • Hibernate / JPA
    • Languages
      • Java Script
      • Dot Net
      • Java
      • Python
      • C / C++
      • PHP
      • AI / ML
      • Type Script
    • Mobile Frameworks
      • Ionic
      • Native Script
      • Native Android App
      • Native iOS App
      • Google Flutter
      • React Native
  • Blog
  • Hire Us

How to create a Self-Signed SSL Certificate

Categories

  • Angular
  • Business Strategies
  • Cloud Services
  • CRM
  • Design Pattern
  • E-commerce
  • ERP Applications
  • Javascript
  • Meteor
  • Mobile development
  • Mongo DB
  • Node JS
  • Odoo
  • Our Partners
  • PHP
  • React
  • SAAS
  • Salesforce
  • SAP
  • Selenium
  • Tech stack Migration
  • Testing
  • UI-UX Design
  • Uncategorized
  • VAPT
  • Visualforce
  • Web Development
  • Web Security

Categories

  • Angular
  • Business Strategies
  • Cloud Services
  • CRM
  • Design Pattern
  • E-commerce
  • ERP Applications
  • Javascript
  • Meteor
  • Mobile development
  • Mongo DB
  • Node JS
  • Odoo
  • Our Partners
  • PHP
  • React
  • SAAS
  • Salesforce
  • SAP
  • Selenium
  • Tech stack Migration
  • Testing
  • UI-UX Design
  • Uncategorized
  • VAPT
  • Visualforce
  • Web Development
  • Web Security
How to create a Self-Signed SSL Certificate

Prerequisites to create Self-Signed SSL Certificate:

For creating self-signed SSL certificate you first need to be sure that OpenSSL is installed on your computer, generally, it’s coming installed in windows 10 nowadays, you can check this by-

1.open cmd a nd type
$ which OpenSSL

If this command return address like this /usr/bin/openssl means you are ready otherwise you need to install it first.
for Windows- >http://gnuwin32.sourceforge.net/packages/openssl.htm

Now, before creating final SSL certificate you first need to build private key and certificate signing request. See, this step is essential for creating SSL certificate. You just have to type some simple commands-

openssl genrsa -des3 -passout pass:x -out localhost.pass.key 2048
…
$ openssl rsa -passin pass:x -in localhost.pass.key -out localhost.key
writing RSA key
$ rm localhost.pass.key
$ openssl req -new -key localhost.key -out localhost.csr
…

After this, it will ask for some few entries for your signing request, just fill it normally like-

country
city
password
name
company
etc.

You can skip password there is no need of, this is used when you buy an SSL certificate but remember name filed it must be same as type your key name like here it is localhost- 

Country Name (2 letter code) [AU]:US
State or Province Name (full name) [Some-State]:California
…
A challenge password []:
…

now you are one command away from your SSL certificate, write
$ OpenSSL x509 -req -sha256 -days 365 -in localhost.CSR -signkey localhost.key -out localhost.crt

Here it is localhost.crt

Now, include this files in your server.js-

1
https.createServerhttps.createServer({<br />key: fs.readFileSync(__dirname + '/ssl/localhost.key'),<br />cert: fs.readFileSync(__dirname + '/ssl/localhost.crt')<br />}, app).listen(447, function () {<br />});

Now add this localhost.crt file in your browser to make it trust the certificate.
Go to setting ->manage certificate ->import
Refresh the browser and enjoy.

Ask if you have any problem in Creating Self-Signed SSL Certificate, ask in comment box.

Share this with your friends if you found this helpful.

Posted byrahulMarch 31, 2017January 15, 2021Posted inOur Partners, Web DevelopmentTags: create Self-Signed SSL Certificate, Self-Signed SSL Certificate, ssl certificate localhost

Post navigation


:

Leave a comment

Cancel reply

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

Recent Posts

  • PyScript – Python for the Web Browser

    PyScript – Python for the Web Browser

  • Cross-Database with Association in Postgres with Sequelize

    Cross-Database with Association in Postgres with Sequelize

  • How can You Improve Your Communication Skills – Effective Tips

    How can You Improve Your Communication Skills – Effective Tips

  • 5 Reasons that Make CRM Software Beneficial for Every Business

    5 Reasons that Make CRM Software Beneficial for Every Business

  • Do Low-Code Solutions have a Future in Web Development?

    Do Low-Code Solutions have a Future in Web Development?

  • A Revenue Management Reset in Consumer Goods

    A Revenue Management Reset in Consumer Goods

Talk to our experts now

Have a project or looking for development team? Contact us.

Get a quote

About Us

Habilelabs Private Limited is the ISO 9001:2015 certified IT company, which has marked its flagship in 20+ countries with 100+ projects successfully

Company

  • About
  • Blog
  • Careers
  • Hire Us
  • Privacy Policy

Contact Us

  • +91-9828247415
  • +91-9887992695
  • info@habilelabs.io

Follow Us

Office

  • Habilelabs Private Limited
    4th Floor, I.G.M. School Campus,
    Sec-93 Agarwal Farm, Mansarovar,
    Jaipur, Rajasthan India
    Pin:302020