nix pkg manager debian
use Nix package manager on Debian
So just a guide based on explanations from Google Gemini
The following would be a set of commands and expected responses
sudo apt install openvpn easy-rsa -y
Recommended: Create and secure a new directory for your CA
make-cadir ~/openvpn-pki
cd ~/openvpn-pki
# Initialize the PKI environment
./easyrsa init-pki
Response
init-pki' complete; you may now create a CA or requests.
Your newly created PKI dir is:
* /home/atle/openvpn-pki/pki
Using Easy-RSA configuration:
* /home/atle/openvpn-pki/vars
Build the CA. You will be prompted to enter a CA Passphrase. Make this secure and write it down.
./easyrsa build-ca
Response
CA creation complete. Your new CA certificate is at:
* /home/atle/openvpn-pki/pki/ca.crt
Generate the server key and CSR. 'server' is the Common Name (CN). ./easyrsa gen-req server nopass
Private-Key and Public-Certificate-Request files created.
Your files are:
* req: /home/atle/openvpn-pki/pki/reqs/server.req
* key: /home/atle/openvpn-pki/pki/private/server.ke
Sign the server certificate using the CA. You will be prompted for the CA Passphrase.
./easyrsa sign-req server server
Response
* /home/atle/openvpn-pki/vars
Please check over the details shown below for accuracy. Note that this request
has not been cryptographically verified. Please be sure it came from a trusted
source or that you have verified the request checksum with the sender.
You are about to sign the following certificate:
Requested CN: 'small'
Requested type: 'server'
Valid for: '825' days
subject=
commonName = small
Type the word 'yes' to continue, or any other input to abort.
Confirm requested details: yes
Using configuration from /home/atle/openvpn-pki/pki/1fa12698/temp.1.1
Enter pass phrase for /home/atle/openvpn-pki/pki/private/ca.key:
Check that the request matches the signature
Signature ok
The Subject's Distinguished Name is as follows
commonName :ASN.1 12:'small'
Certificate is to be certified until Dec 30 21:42:44 2027 GMT (825 days)
Write out database with 1 new entries
Database updated
Notice
How to leverage a Raspberry PI and a MIDI keyboard