Exporting a Public Key
Configure command for exporting a public key.
The exportPubkey
command enables you to export a public key in PEM-encoded format.
Open a command prompt and run exportPubkey
command to export a public key in PEM-encoded format.
Syntax
Syntax: exportPubKey -h -k <key handle> -out <key file>
Where: -h displays this information
-k specifies the public key handle
-out specifies the file to write the exported public key
Example
Command: exportPubKey -k 128 -out t1
PEM formatted public key is written to t1
ExportPubKey returned: 0x00 : HSM Return: SUCCESS