Created
November 20, 2020 12:47
-
-
Save saissemet/d1cc5058c3209b5a592f506b1603f356 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Very good 👍