cmu getattribute

This function outputs any viewable attributes for an object. An optional output filename can be used to direct the output to a file.

Syntax

cmu getAttribute -handle=<handle#> [-attributes=<attribute(s)>] [-outputFile=<filename>] [-password=<password>] [-slot=<slot#>]

Argument(s) Description
-attributes=<attribute(s)>

Lists the attributes to be displayed for the object as a comma-separated list. Multiple instances of this option can also be used to define multiple attributes. If this parameter is omitted, all viewable attributes are displayed.

application  

keytype  

sign  

certificatetype  

label  

startdate  

class  

local  

subject  
decrypt  

modulus  

token  

derive  

modulusbits  

unwrap  

encrypt  

neverextractable  

value  

enddate  

private  

verify  

extractable  

publicexponent  

wrap  

id  

sensitive    

issuer  

serialnumber  

 
-handle=<handle#> The object handle. If this parameter is omitted and there is only one object on the HSM, that object is automatically selected. If this parameter is omitted and there are multiple objects on the HSM, you are prompted to select the object.
-outputFile=<filename> Defines the filename to which the attribute set is written. If this parameter is omitted, the attribute set is written to the display.
Common
-password=<password> The password for the role accessing the current slot, with the current command.  If this is not specified, it is prompted.
-slot=<slote#> The slot to be acted upon, by the current command. If this is not specified, it is prompted.

Example

The following command outputs all of the viewable attributes for the object with handle 46:

cmu getAttribute -handle=46
 

The following command outputs the label, public exponent and modulus of key 9 to file keydata.txt:

cmu getAttribute -handle=9 -attribute=label,publicExponent,modulus -outputFile=keydata.txt