Author : CarbonSphere
Email : carbonsphere@gmail.com
-
Pull required container
-
docker pull carbonsphere/docker-easy-rsa
-
get example from github "git clone https://github.com/carbonsphere/dock-easy-rsa.git"
-
cd dock-easy-rsa/example Create "vars" or you can use default by "cp vars.example vars"
-
Edit default variables in "vars" file
-
Initialize CA certificate and server certificate "./gen_ca_init.sh"
Note: This script will create CA & Server certificates/keys & DH2048 and copy it into directory "openvpn" Warning: This script will also clear all directories "keys" & "openvpn". Since it is only necessary to run it once for your CA server. Note: A signed CA certificate can also be used by replacing it in "keys" directory.
- Create Client Certificate and key "./gen_client.sh"
Note: This will ask for client name and after creation, it will put all necessary files into directory "{entered_client_name}"
-
The goal of this container is to allow you to manage and generate server/client certificates and keys without installing all the mumbo jumbo. It categorize all functions into server/client certificate generation scripts.