Skip to main content

Tutorial: Revoke or Delete a User Certificate or Profile

Abstract

How to revoke user certificates and connection profiles for OpenVPN Access Server.

Overview

This tutorial provides instructions for revoking the user certificates for your VPN clients connecting to Access Server.

Revoking or deleting a user certificate or profile removes it from the Access Server certificates database, but the action does not block the user. After revocation, when the user connects with that profile, the user receives an “authentication failed” message stating that the certificate is revoked. The user must then delete the profile and import a new one; at this point, Access Server generates a new certificate and profile.

As of Access Server version 2.9, users can have multiple active profiles. You can manage user profiles on the User Profiles page in the Admin Web UI.

  • An installed Access Server.

  • VPN users.

  • Admin Web UI access or console access.

Follow the steps for your Access Server version.

Tip

We recommend running the latest version.

  1. Sign in to the Admin Web UI.

  2. Click User Management > User Profiles.

  3. Click the drop-down next to the user.

  4. Click Delete for the profile and its associated certificate.

  5. Click Delete.

Note

An administrator can revoke one profile at a time or all associated user profiles simultaneously.

  1. Sign in to the Admin Web UI.

  2. Click User Management > Revoke Certificates.

  3. Check the box under Revoke for the appropriate client certificate.

  4. Click Revoke

You can revoke certificates or profiles from your Access Server CLI. These commands use the sa tool, the sacli tool, and the confdba tool.

  1. Connect to your console with root privileges.

  2. Switch to the scripts directory:

    cd /usr/local/openvpn_as/scripts/
  3. Run the desired commands from one of the sections below with the appropriate CLI tool.

sa tool commands

  • Delete the oldest user-locked profile for a user:

    ./sa DeleteClient [username]
  • Delete the oldest autologin profile:

    ./sa DeleteClient [username]_AUTOLOGIN
  • Delete a profile by its serial number:

    ./sa DeleteClientSN [serial number]1

    1

    The serial number for a profile displays in the Admin Web UI on the User Profiles page. You can also check it from CLI with ./sa listclientsdetail or ./sacli listclientsdetail.

sacli tool commands

  • Revoke all certificates for the user:

    ./sacli --user [username] RevokeUser
  • Revoke the oldest user-locked certificate with a specific common name:

    ./sacli --cn [common name] RevokeUserProfile
  • Revoke the oldest autologin certificate with a specific common name:

    ./sacli --cn [common name]_AUTOLOGIN RevokeUserProfile
  • Revoke a certificate by its serial number:

    ./sacli --sn [serial number]1 RevokeUserProfile

    1

    The serial number for a profile displays in the Admin Web UI on the User Profiles page. You can also check it from CLI with ./sa listclientsdetail or ./sacli listclientsdetail.

confdba command

  • Prevent a user from getting a new certificate from the Client UI or a VPN client after revocation:

    ./confdba -u --mod --prof [username] --key prop_deny --value true

When a user receives the message “REVOKED: client certificate has been revoked” in OpenVPN Connect, their imported certificate/profile has been revoked in the Access Server certificates database. To resolve the error:

  1. Click Edit for the profile.

  2. Click Delete Profile.

  3. Click Yes.

  4. Click the Add icon.

  5. Enter the URL for Access Server and click Next.

  6. Enter the username and password and click Import.