All Products
Search
Document Center

Key Management Service:getCert

Last Updated:Mar 31, 2026

Exports a certificate from an HSM and saves it to a local file. Use this command to retrieve a specific certificate type for troubleshooting certificate issues or configuration problems.

Prerequisites

Before you begin, make sure that you have:

Syntax

getCert -f <file-name>
        -s <certificate-type>
Important

Enter parameters in the order shown in the syntax.

Parameters

ParameterDescriptionRequiredValid values
-fThe file name to save the certificate to.YesNo special requirements
-sThe certificate type.YesSee Certificate types

Certificate types

ValueCertificate type
1Manufacturer root certificate
2Manufacturer hardware certificate
4Customer root certificate
8HSM cluster certificate (signed by the customer root certificate)
16HSM certificate (manufacturer root certificate)

Example

The following example exports the HSM root certificate and saves it as userRoot.crt.

getCert -f userRoot.crt -s 4

Expected output:

Cfm3GetCert() returned 0 :HSM Return: SUCCESS