LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-08-2024, 04:22 AM   #1
Jason.nix
Member
 
Registered: Feb 2023
Posts: 567

Rep: Reputation: 10
Post Generating new keys using Easy-RSA


Hello,
To build an OpenVPN server I did the following steps:
Code:
# cd /etc/openvpn/easy-rsa
# mv vars.example vars
# nano vars

export KEY_COUNTRY="US"
export KEY_PROVINCE="CA"
export KEY_CITY="NY"
export KEY_ORG="MyDepartment"
export KEY_EMAIL="admin@example.xyz"
export KEY_OU="OpenVPN"
I saved and closed the file. Then:
Code:
# ./easyrsa init-pki
# ./easyrsa build-ca nopass
# ./easyrsa gen-req MyDepartment_Server nopass
# ./easyrsa sign-req server MyDepartment_Server
Building a Diffie-Hellman key exchange:
Code:
# ./easyrsa --keysize=4096 gen-dh
# openvpn --genkey secret ta.key
Finally:
Code:
# cp ta.key /etc/openvpn/server
# cp pki/ca.crt /etc/openvpn/server
# cp pki/private/MyDepartment_Server.key /etc/openvpn/server
# cp pki/issued/MyDepartment_Server.crt /etc/openvpn/server
# cp pki/dh.pem /etc/openvpn/server/
As you can see, I have moved the files to /etc/openvpn/server directory. Now I want to create another server and when I use the command "./easyrsa init-pki", then the following message is displayed:
Quote:
# ./easyrsa init-pki

WARNING!!!

You are about to remove the EASYRSA_PKI at:
* /etc/openvpn/easy-rsa/pki

and initialize a fresh PKI here.

Type the word 'yes' to continue, or any other input to abort.
Confirm removal:
All the servers I want to make are for one company. I have some questions:

1- Now if I ignore the warning message above, what is the risk?

2- What do I need to do to build new servers using Easy-RSA?

3- What files do I need to copy from Easy-RSA so that I can safely delete the Easy-RSA directory?

Thank you.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
generating k permutations of a series and then generating all possible binary trees from them jamesbon Programming 5 09-27-2018 12:42 AM
RSA SecurID: RSA Web Agent, integration of RSA auth page Linux_Kidd General 1 08-28-2013 05:59 PM
Any other method of generating pub key attenuation other than rsa key sanjay87 Linux - Server 1 03-29-2012 09:21 AM
can't start sshd. Error is "Generating SSH1 RSA host key [FAILED] ryannlinux Linux - Newbie 9 03-20-2009 03:42 AM
booting RedHat - generating SSH1 RSA hosh key [FAILED] pru Linux - Newbie 1 02-04-2008 09:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration