• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » How to Create Own Certificate Authority (CA) With EasyRSA

By Abhishek Ghosh August 24, 2019 9:43 pm Updated on August 24, 2019

How to Create Own Certificate Authority (CA) With EasyRSA

Advertisement

A certificate authority (CA) is who issues the digital certificates. We need this for installation of some software, such as OpenVPN. For doing that, we have to download the latest version of EasyRSA. EasyRSA is the CLI utility to build and manage a PKI CA. A CA acts as a trusted 3rd party. The format of these certificates is specified by the X.509 standard.

A certificate signed by a Certificate Authority (CA) which is trusted, like by the browser is displayed as trusted (that usually a padlock icon). A browser only trusts a CA when the CA’s public root certificate is installed in the browser and/or the computer in use. That makes the actual usage limited within own network. Browsers come with pre-installed CA certificates such as from Geotrust, Comodo, Symantec. The reason to use EasyRSA like scripted way is to make the steps easy. OpenSSL command line for setting up own CA infrastructure for a person unused with X.509 certificate chain of trust can make dizzy. We need to build the CA on a single server for this purpose. This prevents an attacker to access the CA private key to sign new certificates. We can keep the CA server turned off when not required to be in use.

How to Create Own Certificate Authority CA

This is EasyRSA’s official GitHub repo :

Advertisement

---

Vim
1
2
3
4
5
#
 
https://github.com/OpenVPN/easy-rsa
 
#

We can wget it and un-tar it :

Vim
1
2
3
4
5
6
7
8
9
10
11
cd ~
# version 3.0.6 is latest at the time of writing this guide
wget https://github.com/OpenVPN/easy-rsa/releases/download/v3.0.6/EasyRSA-unix-v3.0.6.tgz
ls | grep "tgz"
tar -xzvf EasyRSA-unix-v3.0.6.tgz
rm EasyRSA-unix-v3.0.6.tgz
cd ~/EasyRSA-v3.0.6/
cp vars.example vars
cat vars
# initialized to create pki directory and various sub-directories
./easyrsa init-pki force

You’ll get output like this :

Vim
1
2
..
Your newly created PKI dir is: /home/user-name/EasyRSA-v3.0.6/pki

Now we need to edit that vars file :

Vim
1
2
nano vars
# vi vars

Your edit should make the file looking like this :

Vim
1
2
3
4
5
6
7
8
. . .
 
set_var EASYRSA_REQ_COUNTRY    "IN"
set_var EASYRSA_REQ_PROVINCE   "WestBengal"
set_var EASYRSA_REQ_CITY       "Kolkata"
set_var EASYRSA_REQ_ORG        "The Customize Windows Consultancy"
set_var EASYRSA_REQ_EMAIL      "admin@thecustomizewindows.com"
set_var EASYRSA_REQ_OU         "Blog Department"

Again, we need to call the easyrsa script for the build-ca option which will build the CA and create two required files ca.crt and ca.key. We do not need password hence we will run :

Vim
1
./easyrsa build-ca nopass

To generate CA certificate use something similar to:

Vim
1
2
echo "ca.thecustomizewindows.com" > input.txt
./easyrsa build-ca nopass < input.txt

There are various methods for generating server or client certificates. Such as, on CA server we can use the build-server-full or build-client full script.

Another way is to copy the easy-rsa scripts on target server and generating certificate request. This request will be imported in next step and signed on CA server. Then the signed certificate will be transferred back to the server which generated the request. To build full-client-certifcate without requiring client to generate certificate request and send it to CA server use something like:

Vim
1
./easyrsa build-client-full abhishek@thecustomizewindows.com nopass

Your PKI dir was at /home/user-name/EasyRSA-v3.0.6/pki. The above commond will create ..pki/private/vpn.thecustomizewindows.com.key and ..pki/issued/vpn.thecustomizewindows.com.crt. To export CA certificate in PKCS#12 format use:

Vim
1
./easyrsa export-p12 abhishek@thecustomizewindows.com

Update the status of the certificates in index file:

Vim
1
./easyrsa update-db

To generate DH parameters use:

Vim
1
./easyrsa gen-dh

Tagged With easyrsa build-ca , windows 2019 certification authority create wildcard , easyrsa build-ca nopass , easy rsa CA , easy rsa , create own ca , create my own certificate from windows 2019 certificate authority , create certificate using easyrsa , build-ca windows10 , build windows 2019 certificate authority
Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to How to Create Own Certificate Authority (CA) With EasyRSA

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • What is a Code Signing Certificate for Microsoft Developers?

    Code tampering can be disastrous since it’s done with malicious intentions. The main motto of attackers for tampering with software codes is to invade customer data privacy. But, apart from that, gaining unauthorized control on the codes, modifying them to change their behaviour, disabling security protocols, installing backdoor gateways, inserting malicious codes via injections, altering […]

  • 3 Ways to Improve PKI Management

    As your customers stumble upon your website, there are some invisible alarms going off in their heads. “Should I enable permissions for this page? Will they track my activity? Is my privacy already compromised?” And while this may seem extreme, their fears aren’t entirely irrational. Enter Public Key Infrastructure (PKI). PKI certificates essentially show your […]

  • Which SSL Certificate You Need?

    Which SSL Certificate You Need? Pricing of SSL Certificates Varies and SSL Certificate is Difficult To Change – This is a Critical Topic.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Hybrid Multi-Cloud Environments Are Becoming UbiquitousJuly 12, 2023
  • Data Protection on the InternetJuly 12, 2023
  • Basics of BJT TransistorJuly 11, 2023
  • What is Confidential Computing?July 11, 2023
  • How a MOSFET WorksJuly 10, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy