Document toolboxDocument toolbox

Delete object

This article is valid from CM 8.0.

This article describes the syntax for how to delete an object. The hwsetup command line tool, included in Nexus Certificate Manager (CM), is used.

Syntax

Syntax: Delete object
hwsetup -libname <pkcs11lib> [-slot <slot#>] [-pin <PIN>] [-nopinpad] [-id <string>] [-label <string>] [-login user|so] {-remove | -removeall | -removecerts}

Options and arguments

For a description of the options libname, slot, pin, nopinpad, and login and their arguments, see Generate DSA/EC/RSA key pair.

Options and Arguments

Description

Options and Arguments

Description

remove

Use remove to delete all objects for a given slot.

removeall

Use removeall to delete all objects in the given slot.

removecert

Use removecerts to delete the certificate objects for the given slot, id and label.

id <string>

Delete the objects where the CKA_ID attribute contains the specified string, case insensitive string match.

label <string>

Delete the objects where the CKA_LABEL attribute contains the specified string, case insensitive string match.

Examples

To delete all objects in a slot:

Example: Delete all objects in slot
hwsetup -libname crypto -slot 1 -pin abcd -removeall

To delete the certificate objects for a given slot and id:

Example: Delete the certificate objects for given slot and id
hwsetup -libname crypto -pin abcd -slot 1 -id mykey -removecerts



Copyright 2024 Technology Nexus Secured Business Solutions AB. All rights reserved.
Contact Nexus | https://www.nexusgroup.com | Disclaimer | Terms & Conditions