Forrest logo
back to the pivpn tool

pivpn:tldr:9cd90

pivpn: Revoke a previously authenticated device.
$ sudo pivpn revoke
try on your machine

The command "sudo pivpn revoke" is used to revoke the client certificate and corresponding private key for a specific user or device in a PiVPN setup.

PiVPN is a tool that allows you to set up a private Virtual Private Network (VPN) server on your Raspberry Pi or any other Linux machine. It simplifies the process of creating and managing a VPN, making it easier for users to access their network resources securely from anywhere.

When you install PiVPN, it generates a unique client certificate and corresponding private key for each user or device that wants to connect to the VPN server. These certificates and keys are used to authenticate and secure the communication between the client and the server.

The "sudo pivpn revoke" command is used to invalidate or revoke a specific client certificate and its private key. This is useful when you want to deny access to a particular user or device, or if you suspect a security breach. Revoking a certificate means that the corresponding client will no longer be able to connect to the VPN server using that certificate/key pair.

To use this command, you need administrative privileges (hence "sudo") and you should have PiVPN installed on your system. By running this command, you will be prompted to select the client certificate and key pair that you want to revoke.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the pivpn tool