Skip to main content
Skip table of contents

Import a keypair

This article is valid from CM 8.0.

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

Syntax

Syntax: Import keypair

TEXT
hwsetup -libname <pkcs11lib> [-slot <slot#>] [-pin <PIN>] [-nopinpad]
[-id <string>] [-label <string>] [-login user|so]
-import <filename> -password <password>

Options and arguments

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

Options and ArgumentsDescription
import <filename>Use import to import an RSA or DSA keypair from a PKCS#12 file to the given slot, id and label.
password <password>The password for the PKCS#12 file.

Examples

To import the file keypair.p12 to slot 1:

Example: import the file keypair.p12 to slot 1

TEXT
hwsetup -libname crypto -slot 1 -pin abcd -import keypair.p12 -password abcd1234
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.