Skip to content

Instantly share code, notes, and snippets.

@saissemet
Created November 20, 2020 12:47
Show Gist options
  • Save saissemet/d1cc5058c3209b5a592f506b1603f356 to your computer and use it in GitHub Desktop.
Save saissemet/d1cc5058c3209b5a592f506b1603f356 to your computer and use it in GitHub Desktop.
./easy-rsa init-pki
## Build the ca.crt ##
./easy-rsa build-ca nopass
## Generate a certificate request. This command automatically creates the private key (.pki file) ##
./easy-rsa gen-req <Server Name> nopass
## Self-sign the certificate to create the .crt file ##
./easy-rsa sign-req <Server Name> nopass
## The lines above can also be done using this single command: ./easy-rsa build-server-full <ServerName> ##
## Place the certificate files in their respective folders ##
cp /etc/EasyRSA-3.0.8/pki/private/<ServerName.pki> /etc/ssl/private
cp /etc/EasyRSA-3.0.8/pki/issued/<ServerName.crt> /etc/ssl/certs
@popeyzada
Copy link

Very good 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment