Skip to content

bxp revoke

Revoke a certificate.

Usage

Declare a TLS certificate invalid before it expires, for example
because its private key may have been stolen. Run this on the CA
machine. It takes effect at once: the server puts the certificate on
its list of revoked certificates (CRL) and answers "revoked" when
asked about it (OCSP). The server does not need a restart.

Find the serial number with "bxp list certificates", or in the certificate:
  openssl x509 -in web.crt -noout -serial

A revocation cannot be taken back. And it only helps where programs
check for it: see the README.

A revoked certificate can no longer be renewed.

SSH certificates are revoked with --ssh. That only stops renewal: SSH
servers are not told. To lock someone out at once, remove their
access on the servers.

Usage:
  bxp revoke <serial number> [flags]

Examples:
  bxp revoke 2674c91e0dadae73aaba34dd46d5128c53a49287 --reason key-compromise
  bxp revoke --ssh 5402519870817840555 --reason key-compromise

Flags:
  -h, --help            help for revoke
      --reason string   why: cessation, key-compromise, superseded, unspecified (default "unspecified")
      --ssh             the serial number is that of an SSH certificate (as "ssh-keygen -L" shows it)

Global Flags:
      --config string   path to the configuration file (default "bastionxp-ca.yaml")