Client certificate revocation lists - AWS Client VPN

Client certificate revocation lists

You can use client certificate revocation lists to revoke access to a Client VPN endpoint for specific client certificates.

Note

For more information about generating the server and client certificates and keys, see Mutual authentication

For more information about the number of entries you can add to a client certificate revocation list, see Client VPN quotas.

Generate a client certificate revocation list

Linux/macOS

In the following procedure, you generate a client certificate revocation list using the OpenVPN easy-rsa command line utility.

To generate a client certificate revocation list using OpenVPN easy-rsa
  1. Logon to the server hosting the easyrsa installation used to generate the certificate.

  2. Navigate into the easy-rsa/easyrsa3 folder in your local repo.

    $ cd easy-rsa/easyrsa3
  3. Revoke the client certificate and generate the client revocation list.

    $ ./easyrsa revoke client1.domain.tld $ ./easyrsa gen-crl

    Type yes when prompted.

Windows

The following procedure uses the OpenVPN software to generate a client revocation list. It assumes that you followed the steps for using the OpenVPN software to generate the client and server certificates and keys.

To generate a client certificate revocation list using EasyRSA version 3.x.x
  1. Open a command prompt and navigate to the EasyRSA-3.x.x directory, which will depend on where it is installed on your system.

    C:\> cd c:\Users\windows\EasyRSA-3.x.x
  2. Run the "EasyRSA-Start.bat" file to start the EasyRSA shell.

    C:\> .\EasyRSA-Start.bat
  3. In the EasyRSA shell, revoke the client certificate.

    # ./easyrsa revoke client_certificate_name
  4. Type "yes" when prompted.

  5. Generate the client revocation list.

    # ./easyrsa gen-crl
  6. The client revocation list will be created in the following location:

    c:\Users\windows\EasyRSA-3.x.x\pki\crl.pem
To generate a client certificate revocation list using previous EasyRSA versions
  1. Open a command prompt and navigate to the OpenVPN directory.

    C:\> cd \Program Files\OpenVPN\easy-rsa
  2. Run the vars.bat file.

    C:\> vars
  3. Revoke the client certificate and generate the client revocation list.

    C:\> revoke-full client_certificate_name C:\> more crl.pem

Import a client certificate revocation list

You must have a client certificate revocation list file to import. For more information about generating a client certificate revocation list, see Generate a client certificate revocation list.

You can import a client certificate revocation list using the console and the AWS CLI.

To import a client certificate revocation list (console)
  1. Open the Amazon VPC console at https://console.aws.amazon.com/vpc/.

  2. In the navigation pane, choose Client VPN Endpoints.

  3. Select the Client VPN endpoint for which to import the client certificate revocation list.

  4. Choose Actions, and choose Import Client Certificate CRL.

  5. For Certificate Revocation List, enter the contents of the client certificate revocation list file, and choose Import client certificate CRL.

To import a client certificate revocation list (AWS CLI)

Use the import-client-vpn-client-certificate-revocation-list command.

$ aws ec2 import-client-vpn-client-certificate-revocation-list --certificate-revocation-list file://path_to_CRL_file --client-vpn-endpoint-id endpoint_id --region region

Export a client certificate revocation list

You can export client certificate revocation lists using the console and the AWS CLI.

To export a client certificate revocation list (console)
  1. Open the Amazon VPC console at https://console.aws.amazon.com/vpc/.

  2. In the navigation pane, choose Client VPN Endpoints.

  3. Select the Client VPN endpoint for which to export the client certificate revocation list.

  4. Choose Actions, choose Export Client Certificate CRL, and choose Export Client Certificate CRL.

To export a client certificate revocation (AWS CLI)

Use the export-client-vpn-client-certificate-revocation-list command.