
Issue one
On the issuer's machine
./easyrsa build-client-full tablet nopassOne per device, with a name that says whose it is. Do not let a whole family share one.
What expires soon
Look at one certificate
./easyrsa show-cert tablet | grep -A2 Validity
./easyrsa show-expire 60Revoke one
A lost phone, someone who left
./easyrsa revoke phone
./easyrsa gen-crl
sudo cp pki/crl.pem /etc/openvpn/server/crl.pemNo restart is needed; new connections consult the list. Existing ones are cut when they reconnect. If it is urgent, restart the service.
When something expires
| What expired | What to do |
|---|---|
| A client certificate | Issue one under a new name and revoke the old |
| The server certificate | Sign again, replace the files, restart |
| The CA | New CA, all certificates reissued |
Keeping the seal
- WhereAn offline computer or an encrypted USB stick
- PasswordDo not use nopass with build-ca
- BackupTwo copies in different places
- NeverOn the server that runs OpenVPN
I forgot the CA password?
There is no way to recover it. Build a new CA and reissue everything.
Certificates together with passwords?
Yes, with an authentication plugin on the server. A lost phone then still needs the password.
Walk onBuild your own gate