Revoke Virgil Card
The Revoke Card command,
virgil card-revoke, directly revokes a Virgil Card. It can also revoke a card through its Virgil Card ID. The Private Key that was used for the specified Virgil Card's creation is required.
This command has the following syntax:
virgil card-revoke [options...] [-i <file>] [-r <reason>]
The main options are:
-i <file>, --in=<file> -The Virgil Card ID or the Virgil Card itself for revocation. If omitted, stdin is used.
-r <reason>, --revocation-reason=<reason> - the
revocation reason must be
compromised [default: unspecified].
Prerequisites for work with the command
In order to use the Revoke Card command,
virgil card-revoke, one must first:
Exammple #1. Revoke the Virgil Card:
virgil card-revoke -i alice.vcard
In order to check our operation, we must search for alice.vcard on the Card Service with the search command:
virgil card-search email:[email protected] --no-format, which will output:
Found 0 Virgil Card(s)
Example #2. Revoke the Virgil Card via its ID with the revocation reason
virgil card-revoke -i 052e95969315a0d8d3f12de26a18f4e3821d4c160ec102ce870025c7c0556638 -r compromised
In order to check our operation, we must retrieve alice.vcard from the Virgil Card Service by its ID with the Card Get Command:
virgil card-get -i 052e95969315a0d8d3f12de26a18f4e3821d4c160ec102ce870025c7c0556638, as a result we will see:
Requested entity is not found.