REST API  4.0.0
REST API for SafeNet Network HSMs
POST /api/lunasa/hsms/{hsmid}/indirect/key

POST /api/lunasa/hsms/{hsmid}/indirect/key

Loads the indirect login public key onto the service HSM in the administration partition.

Parameters

hsmid

The serial number of the HSM of interest

Use: Required

JSON Schema:

   Object
   type: string

modulus

The modulus of the public key used for indirect login

Use: Required

JSON Schema:

   Object
   type: string

exponent

The exponent of the public key used for indirect login

Use: Required

JSON Schema:

   Object
   type: string

Responses

204

Success

Location

JSON Schema:

    id: Object
        type: string

see POST /api/lunasa/hsms/{hsmid}/indirect/challenges

400

Unexpected error

404

HSM does not exist.

Example Request

   POST
   https://1.2.3.4:8443/api/lunasa/hsms/154704/indirect/key
   {"modulus": "1QgJJEQuDhjYFyV5KB7s/19DTPik0y5mcTAxKJ/anP2vCLNhymZ+wQx9pUUtyaTMskWXbIvxR36/Coi2Qd2/AW2BZDxUwB1pKH0E8kp6wlHStXb0EmGEZz/6cMhSmJnp0rokqYkmop7HHJRDhzM7Q6yX5SHoT01LMYoHD35b9zcMGG6HAaeoKB4k74FeggObIy4W2YX0LXnc1/tKKTvQYA1lHzKSaPKKJSYVbTiEoiSeAF1+1EZCqhjU8jksw5+j0ns1QM1LUQvDPLsznxzRixBtzkJb8AVrIxKB7YWmd4MDvGTFuvreKLYry3rmHhw8uAkYLUC5S1Ub+JZRFAeV2w==",
   "exponent": "AQAB"}

Example Result

{'Access-Control-Allow-Origin': '*', 'Content-Type': 'application/json', 'Location': '/api/lunasa/hsms/154704/indirect/challenges', 'Content-Length': '2', 'Access-Control-Allow-Credentials': 'true'}

{
}