REST API  4.0.0
REST API for SafeNet Network HSMs
PUT /api/lunasa/webServer/certificate

PUT /api/lunasa/webServer/certificate

Regenerates the certificate

Parameters

curveName

curveName is the name of the elliptic curve used for an ECDSA-based certificate.

Use: Required

JSON Schema:

   Object
   type: string

keyType

keyType is the type of key used by the web server to secure access to the REST API service.

Use: Required

JSON Schema:

   Object
   type: string

keySize

keySize is the number of bits for the key used to secure access to the REST API service.

Use: Required

JSON Schema:

   Object
   type: integer

subjectAltNames

subjectAltName is an extension to X.509 that allows various values to be associated with a security certificate.

Use: Required

JSON Schema:

   Object
   type: array
       subjectAltName: Object
                      type: string

Responses

204

Success

Location

JSON Schema:

    id: Object
        type: string

"Location" is the URL to the task spawned to regenerate the certificate. The task is a waiting task.

400

Bad Request

Example Request

   PUT
   https://1.2.3.4:8443/api/lunasa/webServer/certificate
   {
   "curveName" : "secp521r1",
   "keyType" : "rsa",
   "keySize" : 2048,
   "subjectAltNames" : ["example.com", "www.example.com"]
   }

Example Result

{'Access-Control-Allow-Origin': '*', 'Content-Type': 'application/json', 'Location': '/tasks/0', 'Content-Length': '251', 'Access-Control-Allow-Credentials': 'true'}

{ 
}