CryptoImport

Trigger this action to import an export package that contains a certificate.

Use the HTTP POST method with the resource /mgmt/metadata/default, specifying a request payload with the following format:
{
  "CryptoImport": {
    "ObjectType": "type",
    "ObjectName": "object",
    "InputFilename": "file",
    "ImportPassword": "password",
    "ImportPasswordAlias": "password_alias"
  }
}
ObjectType
String
Always "certificate".
ObjectName
String
The name of the certificate to import.
InputFilename
String
Specify the name of the file to import. This file contains the cryptographic object to be imported.
ImportPassword
String

Optional: Specifies the password that was used to encrypt the input file. This parameter is mutually exclusive with the ImportPasswordAlias parameter.

ImportPasswordAlias
String

Optional: Specifies the password that was used to encrypt the input file. This parameter is mutually exclusive with the ImportPassword parameter.

Example

To import a certificate named iop_mgmt_cert from the file exportedthecert.xml, post the following payload to https://yourhost:5554/mgmt/actionqueue/default:

{
  "CryptoImport": {
    "ObjectType": "certificate",   
    "ObjectName": "iop_mgmt_cert",
    "InputFilename": "temporary:///exportedthecert.xml",
    "ImportPassword": "abc_123_def_456"
  }
}