REST API  14
REST API for Luna Network HSMs
GET /api/lunasa/hsms/{hsmid}/certificate

GET /api/lunasa/hsms/{hsmid}/certificate

GET /api/lunasa/hsms/{hsmid}/certificate?type=<legacyKey/key/pkc>

Gets the token wrapping certificate needed for indirect login.

type Secondary partition fw / indirect login protocol version
legacyKey 7.4.0 and below
key 7.7.0 and above / v1.1
pkc 7.7.0 and above / v2.0

Note:

  • By default it will generate token wrapping certificate to perform indirect login v2.0.

Parameters

hsmid

The serial number of the HSM of interest

Use: Required

JSON Schema:

   Object
   type: string

Responses

200

Token wrapping certificate used for indirect login.

JSON Schema:

   Object
      certificate: Object
         type:  string
         description:  certificate is the token wrapping certificate used
                       for indirect login.

400

Unexpected error

404

HSM does not exist.

Example Request

   GET
   https://1.2.3.4:8443/api/lunasa/hsms/154704/certificate

Example Result

{
    "certificate": "AwAAADCCBAswggHzo...7ltguqfo="
}