openvpn sop: update commands with easyrsa

This commit is contained in:
Francois Andrieu 2024-02-06 22:18:59 +00:00
parent 9e4c686587
commit 35adacc621

View file

@ -20,27 +20,7 @@ Purpose::
=== Create/sign the keys
From batcave01 check out the private repo:
....
# This is to ensure that the clone is not world-readable at any point.
RESTORE_UMASK=$(umask -p)
umask 0077
git clone /srv/git/ansible-private
$RESTORE_UMASK
cd ansible-private/vpn/openvpn
....
Next prepare your environment and run the build-key script. This example
is for host "proxy4.fedora.iad2.redhat.com":
....
. ./vars
./build-key $FQDN # ./revoke-full $FQDN to revoke keys that are no longer used.
git add .
git commit -a
git push
....
See xref:howtos:generate_openvpn_keys.adoc[How to generate private key and certificate for OpenVPN client]
=== Create Static IP
@ -122,15 +102,13 @@ RESTORE_UMASK=$(umask -p)
umask 0077
git clone /srv/git/ansible-private
$RESTORE_UMASK
cd ansible-private/vpn/openvpn
cd ansible-private/files/vpn
....
Next prepare your environment and run the build-key script. This example
is for host "proxy4.fedora.iad2.redhat.com":
Next, use the `easyrsa` command to revoke the certificate:
....
. ./vars
./revoke-full $FQDN
/usr/share/easy-rsa/3.0/easyrsa revoke $FQDN
git add .
git commit -a
git push