Skip to content

Commit

Permalink
test: revocation: Fix EasyRSA revoke behavior
Browse files Browse the repository at this point in the history
* EasyRSA moves the files aside now, see EasyRSA v3.0.6 for details
* OpenVPN/easy-rsa@675fc99
  • Loading branch information
kylemanna committed Oct 26, 2020
1 parent 0b2e632 commit 1a22f61
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/ovpn_revokeclient
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ revoke_client_certificate(){
chmod 644 "$OPENVPN/crl.pem"
}

revoke_client_certificate "$cn"
revoke_client_certificate "$cn"
4 changes: 2 additions & 2 deletions test/tests/revocation/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ fi
#
docker exec -it $NAME easyrsa build-client-full $CLIENT1 nopass
docker exec -it $NAME ovpn_getclient $CLIENT1 > $CLIENT_DIR/config.ovpn
docker exec -it $NAME bash -c "echo 'yes' | ovpn_revokeclient $CLIENT1 remove"
docker exec -it $NAME bash -c "echo 'yes' | ovpn_revokeclient $CLIENT1"

#
# Test that openvpn client can't connect using $CLIENT1 config.
Expand All @@ -59,7 +59,7 @@ fi
#
docker exec -it $NAME easyrsa build-client-full $CLIENT2 nopass
docker exec -it $NAME ovpn_getclient $CLIENT2 > $CLIENT_DIR/config.ovpn
docker exec -it $NAME bash -c "echo 'yes' | ovpn_revokeclient $CLIENT2 remove"
docker exec -it $NAME bash -c "echo 'yes' | ovpn_revokeclient $CLIENT2"

if docker run --rm -v $CLIENT_DIR:/client --cap-add=NET_ADMIN --privileged --net=host $IMG /client/wait-for-connect.sh; then
echo "Client was able to connect after revocation test #2." >&2
Expand Down

0 comments on commit 1a22f61

Please sign in to comment.