Re: I have a question about Easy-RSA

Peter Davis via Openvpn-users <[email protected]>
Newsgroups gmane.network.openvpn.user
Message-ID <eYbeHlxOpu3vvbKQi2YLUqvnThorPTsI4EHIxWtud3ENyD74Yg0zL7g5nDNkwZOxTNrZxarDZT5X4G6PD4VFPrvHz-ZF-JtgVoM3lug9G8I=@proton.me>
>On Sunday, January 7th, 2024 at 1:27 AM, Gert Doering <[email protected]> wrote:


> Hi,
> 
> On Sat, Jan 06, 2024 at 06:48:55AM +0000, Peter Davis via Openvpn-users wrote:
> 
> > Now I want to create another server and when I use the command "./easyrsa init-pki", then the following message is displayed:
> > 
> > # ./easyrsa init-pki
> 
> 
> "create a server", what does that mean?
> 
> - create a PKI (a certificate management server)?
> - create a server certificate for an OpenVPN server?
> 
> If you want to create a server cert, do not ask easy-rsa to create a
> new PKI (and destroy the existing one).
> 
> gert
> 
> --
> "If was one thing all people took for granted, was conviction that if you
> feed honest figures into a computer, honest figures come out. Never doubted
> it myself till I met a computer with a sense of humor."
> Robert A. Heinlein, The Moon is a Harsh Mistress
> 
> Gert Doering - Munich, Germany [email protected]


Hello,
Thank you so much for your reply.
To build the first server I did the following steps:

# 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="GreatCoder"
export KEY_EMAIL="[email protected]"
export KEY_OU="OpenVPN"


I saved and closed the file. Then:

# ./easyrsa init-pki
# ./easyrsa build-ca nopass
# ./easyrsa gen-req GreatCoder_Server nopass               
# ./easyrsa sign-req server GreatCoder_Server

Building a Diffie-Hellman key exchange:

# ./easyrsa --keysize=4096 gen-dh                        
# openvpn --genkey secret ta.key

Finally:

# cp ta.key /etc/openvpn/server
# cp pki/ca.crt /etc/openvpn/server
# cp pki/private/GreatCoder_Server.key /etc/openvpn/server
# cp pki/issued/GreatCoder_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 if I ignore the warning message above, what is the risk?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.