nfkminfo

The nfkminfo utility displays information about the current security world state, the stored keys, or the available operator card sets and softcards.

Usage

General options

nfkminfo [-h|--help] [-u|--usage] [-v|--version] [--pool]
-h|--help

Displays help for nfkminfo.

-u|--usage

Displays a brief usage summary for nfkminfo.

-v|--version

Displays the version number of the Security World Software that provides nfkminfo.

--pool

Displays the pool of HSMs as a single resource.

Security World options

nfkminfo -w|--world-info [-r|--repeat] [-p|--preload-client-id] [-m|--module MODULE]
-w|--world-info

Displays general information about the Security World and HSMs. This is the default behavior of nfkminfo and does not need to be set explicitly.

-r|--repeat

Displays the world information repeatedly. There is a pause at the end of each set of information. Any updated information is displayed when you press Enter.

-p|--preload-client-id

Displays the preloaded client ID value, if any.

-m|--module MODULE

Displays general information about the Security World and the HSM specified by the module ID MODULE. Set to 0 or omit to report all modules.

Key, card set, and softcard options

nfkminfo -k|--key-list [APPNAME [IDENT]]
nfkminfo -l|--name-list [APPNAME [APPNAME...]]
nfkminfo -c|--cardset-list [TOKENHASH]
nfkminfo -s|--softcard-list [TOKENHASH]
-k|--key-list

Lists keys by appname and ident. If APPNAME is specified, only keys for that application are listed. If APPNAME and IDENT are specified, extra information about the selected key is listed.

-l|--name-list

Lists keys by appname, ident, and plainname. If one or more APPNAME values are specified, only keys for those applications are listed. The keys are grouped by type of protection (module, softcard, card set).

-c|--cardset-list

If TOKENHASH is not specified, this option lists the card sets associated with the Security World. If TOKENHASH is specified, extra information about the selected card set is listed.

-s|--softcard-list

If TOKENHASH is not specified, this option lists the softcards associated with the Security World. If TOKENHASH is specified, extra information about the selected softcard is listed.

For more information, see:

Output reference

If you run nfkminfo with the -w|--world-info option, the following information is displayed.

World

nfkminfo reports the following information about the Security World.

generation

Internal change counter for the world information. Changed to a different non-zero value when the data in the world structure changes (but not when only data in its substructures changes).

state

The status of the current world. All active and inactive flags are listed. See World State Flags below for the options.

n_modules

The number of nShield HSMs connected to this client.

hknso

The SHA-1 hash of the Security Officer’s key.

hkm

The SHA-1 hash of the Security World key.

hkmwk

The SHA-1 hash of a dummy key used to load the Administrator Card Set. The dummy key is the same on all HSMs and is not secret.

hkre

The SHA-1 hash of the recovery key pair.

hkra

The SHA-1 hash of the recovery authorization key.

ex.client

The ClientID required to use any preloaded keys and tokens.

k-out-of-n

The quorum values of K and N for this Security World.

other quora

The number of Administrator Cards (K) required to perform certain other functions as configured for this Security World.

ciphersuite

The name of the Cipher suite that the Security World uses.

kmltype

The KML type used when the Security World was created.

mode

The configured compliance mode for the Security World:

  • none: The Security World is in an unregulated mode. The Security World can be configured to meet the needs of your security policy. This includes, but is not limited to, creating a Security World that is compliant with FIPS 140 Level 2.

  • fips1402level3: The Security World is in a mode compliant with FIPS 140 Level 3.

  • commoncriteriacmts: The Security World is in a mode compliant with Common Criteria Protection Profile EN 419 221-5, for Cryptographic Modules for Trust Services.

max usage

The maximum key usage reauthorization condition for Assigned Keys (common-criteria-cmts mode only).

max timeout

The maximum key timeout reauthorization condition for Assigned Keys (common-criteria-cmts mode only).

World state flags

For each flag, Value means that it is present while !Value means that it is absent.

Initialised

The Security World has been initialized.

Usable

There is at least one usable HSM in this Security World on this host.

Recovery

The Security World has the OCS and softcard replacement and the key recovery features enabled.

AdminAuthRequired

Additional authorization is required for the following operations:

  • Key generation

  • Public key import

  • Operator card set creation

  • Softcard creation.

This authorization is supplied by presenting any operator or administration card from the same Security World. A passphrase is not required.

ExistingClient

There is a Client ID set, for example, by preload. This Client ID is given in the ex.client output if the --preload-client-id flag was supplied.
If the flag is absent, ex.client is empty.

AlwaysUseStrongPrimes

The Security World always generates RSA keys in a manner compliant with FIPS 186-3.

SEEDebug

The Security World has an SEE Debugging delegation key.

SEEDebugForAll

No authorization is required for SEE Debugging.

PINRecovery

The Security World has the passphrase replacement feature enabled.

FTO

The Security World has an FTO delegation key.

NVRAM

The Security World has an NVRAM delegation key.

RTC

The Security World has an RTC delegation key.

AuditLogging

Audit Logging is enabled for this Security World.

Module

For each HSM in the Security World, nfkminfo reports the following.

generation

Internal change counter for the module information. Changed to a different non-zero value when the data in the module structure changes (but not when only data in its substructures changes).

state

The status of the current module. See Module state options below.

flags

This displays ShareTarget if the HSM has been initialized to allow reading of remote card sets.

n_slots

The number of slots on the HSM (there is one slot for each physical smart card reader, one slot for each soft token, one slot for each available Remote Operator slot and one slot for each associated Dynamic Slot).

esn

The electronic serial number of the HSM (if the HSM is not in the Usable state, the electronic serial number may not be available).

hkml

The hash of the HSM signing key (if the HSM is not in the Usable state, this value may not be available).

kmltype

The KML type used by the HSM (if the HSM is not in the Usable state, this value may not be available).

Module state options

PreInitMode

The HSM is in the pre-initialization state.

InitMode

The HSM is in the initialization state.

Unknown

The HSM’s state could not be determined.

Usable

The HSM is programmed in the current Security World and can be used.

Uninitialized

The HSM does not have the Security Officer’s key set and the HSM must be initialized before use.

Factory

The HSM has module key zero only and the Security Officer’s key is set to the factory default.

Foreign

The HSM is from an unknown Security World.

AccelOnly

The HSM is acceleration only.

Unchecked

Although the HSM appears to be in the current Security World, nfkminfo could not find a module initialization certificate (a module_<ESN> file) for this HSM.

Failed

The HSM has failed. For nShield HSMs running firmware 2.61.2 and above, use the enquiry utility for further information about the failure reason. On network-attached HSMs, you can also look for hardware errors in the hardserver log.

MaintMode

The HSM is in the maintenance state.

Slot

For each slot on the HSM, nfkminfo reports:

IC

The insertion count for this slot (which is 0 if there is no card in the slot).

generation

Internal change counter for the slot information. Changed to a different non-zero value when the data in the slot structure changes.

phystype

The type of slot, which can be one of:

  • SmartCard

  • SoftToken

slotlistflags

Flags describing the capabilities of the slot. Single letters in parentheses are the flag codes reported by the slotinfo utility:

  • 0x2 SupportsAuthentication (A): The slot supports token-level challenge-response authentication.

  • 0x40000 RemoteSlot (R): The slot is a Remote Operator slot that has been imported from a remote HSM.

  • 0x80000 DynamicSlot (D): The slot is a Dynamic Slot.

  • 0x100000 Associated (a): A Remote Administration Client has associated a card reader with this slot.

  • 0x200000 TimedOut (t): No response has been received from the smart card in this Dynamic Slot within the configured timeout.

  • 0x400000 SecureChannelFailed (f): The secure channel between the HSM and the smart card in this Dynamic Slot has failed in some way.

state

The status of the current slot:

  • Blank: The smart card in the reader is unformatted.

  • Admin: The smart card in the reader is part of the Administrator Card Set.

  • Empty: There is no smart card in the reader.

  • Error: The smart card in the reader could not be read (the card may be from a different Security World).

  • Operator: The smart card in the reader is an Operator Card.

flags

Displays Passphrase if the smart card requires a passphrase and RemoteEnabled if the inserted card is remote-enabled.

shareno

The number of the card within the card set.

shares

If the card in the slot is an Operator Card, no values are displayed for shares.
If the card in the slot is an Administrator Card, values are displayed indicating what key shares are stored on the card. Each share is prefixed with the letters LT (Logical Token), and the remaining letters identify the key (for example, the value LTNSO indicates that a share of KNSO, the Security Officer’s key, is stored on the card).

error

The error status encountered if the smart card could not be read.

  • OK: There were no errors.

  • TokenAuthFailed: The smart card in the reader failed challenge-response authentication (the card may come from a different Security World).

  • PhysTokenNotPresent: There is no card in the reader.

If you purchased a developer kit, you can refer to the relevant developer documentation for a full list of error codes.

Card set

If there is an Operator Card in the reader, nfkminfo reports:

name

The name given to this card set.

k-out-of-n

The values of K and N for this card.

flags

Displays one flag from each of the following pairs:

  • NotPersistent: The Operator Card is not persistent.

  • Persistent: The Operator Card is persistent.

  • NotRemoteEnabled: The card in the slot is not from a Remote Operator Card Set.

  • RemoteEnabled: The card in the slot is from a Remote Operator Card Set.

  • PINRecoveryForbidden(disabled): The card in the slot does not have passphrase replacement enabled. This is always true if passphrase replacement is disabled for the Security World.

  • PINRecoveryRequired(enabled): The card in the slot does have passphrase replacement enabled.

timeout

The period of time in seconds after which the HSM automatically removes the Operator Card Set. If timeout is set to none, the Operator Card Set does not time out.

card

Lists the names of the cards in the set; not all software can give names to individual cards in a set.

hkltu

The SHA-1 hash of the secret on the card.

Front panel flag mapping

The following table maps the flags visible on the front panel when you select 3 Security World mgmt > 3-1 Display World Info to the fields in the output of nfkminfo.

Front panel nfkminfo

admin

k-out-of-n

nCore flags

slotlistflags

NFKM flags

flags

Module slots

nflags

Initialized

Initialised

ForeignTokenOpen

FTO