- NAME
-
- gcloud privateca certificates revoke - revoke a certificate
- SYNOPSIS
-
-
gcloud privateca certificates revoke
(--certificate
=CERTIFICATE
|--serial-number
=SERIAL_NUMBER
) [--reason
=REASON
; default="unspecified"] [--issuer-pool
=ISSUER_POOL
:--issuer-location
=ISSUER_LOCATION
] [GCLOUD_WIDE_FLAG …
]
-
- DESCRIPTION
- Revokes the given certificate for the given reason.
- EXAMPLES
-
To revoke the 'frontend-server-tls' certificate due to key compromise:
gcloud privateca certificates revoke --certificate=frontend-server-tls --issuer-pool=my-pool --issuer-location=us-west1 --reason=key_compromise
To revoke the a certificate with the serial number '7dc1d9186372de2e1f4824abb1c4c9e5e43cbb40' due to a newer one being issued:
gcloud privateca certificates revoke --serial-number=7dc1d9186372de2e1f4824abb1c4c9e5e43cbb40 --issuer-pool=my-pool --issuer-location=us-west1 --reason=superseded
- REQUIRED FLAGS
-
-
The certificate identifier.
Exactly one of these must be specified:
-
Certificate resource - The certificate to revoke. This represents a Cloud
resource. (NOTE) Some attributes are not given arguments in this group but can
be set in other ways.
To set the
project
attribute:-
provide the argument
--certificate
on the command line with a fully specified name; -
provide the argument
--project
on the command line; -
set the property
core/project
.
To set the
issuer-location
attribute:-
provide the argument
--certificate
on the command line with a fully specified name; -
set the property
privateca/location
.
To set the
issuer-pool
attribute:-
provide the argument
--certificate
on the command line with a fully specified name.
--certificate
=CERTIFICATE
-
ID of the certificate or fully qualified identifier for the certificate.
To set the
certificate
attribute:-
provide the argument
--certificate
on the command line.
-
provide the argument
-
provide the argument
--serial-number
=SERIAL_NUMBER
- The serial number of the certificate.
-
Certificate resource - The certificate to revoke. This represents a Cloud
resource. (NOTE) Some attributes are not given arguments in this group but can
be set in other ways.
-
The certificate identifier.
- OPTIONAL FLAGS
-
--reason
=REASON
; default="unspecified"-
Revocation reason to include in the CRL.
REASON
must be one of:affiliation-changed
,attribute-authority-compromise
,certificate-authority-compromise
,certificate-hold
,cessation-of-operation
,key-compromise
,privilege-withdrawn
,unspecified
,superseded
. -
Issuing CA pool resource - The issuing CA pool of the certificate to revoke. The
arguments in this group can be used to specify the attributes of this resource.
(NOTE) Some attributes are not given arguments in this group but can be set in
other ways.
To set the
project
attribute:-
provide the argument
--issuer-pool
on the command line with a fully specified name; -
provide the argument
--project
on the command line; -
set the property
core/project
.
--issuer-pool
=ISSUER_POOL
-
ID of the Issuing CA pool or fully qualified identifier for the Issuing CA pool.
To set the
pool
attribute:-
provide the argument
--issuer-pool
on the command line.
This flag argument must be specified if any of the other arguments in this group are specified.
-
provide the argument
--issuer-location
=ISSUER_LOCATION
-
The location of the Issuing CA pool.
To set the
issuer-location
attribute:-
provide the argument
--issuer-pool
on the command line with a fully specified name; -
provide the argument
--issuer-location
on the command line; -
set the property
privateca/location
.
-
provide the argument
-
provide the argument
- GCLOUD WIDE FLAGS
-
These flags are available to all commands:
--access-token-file
,--account
,--billing-project
,--configuration
,--flags-file
,--flatten
,--format
,--help
,--impersonate-service-account
,--log-http
,--project
,--quiet
,--trace-token
,--user-output-enabled
,--verbosity
.Run
$ gcloud help
for details.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-02-06 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{
"lastModified": "Last updated 2024-02-06 UTC.",
"confidential": False
}