REST API
4.0.0
REST API for SafeNet Network HSMs
|
Add a login certificate for a REST API user.
Certificate body.
Use: Required
JSON Schema:
Object type: string
Success
JSON Schema:
id: Object type: string
"Location" is the URL to the new certificate resource.
Unexpected error
User does not exist.
POST https://1.2.3.4:8443/users/admin/certificate {"certificate": "-----BEGIN CERTIFICATE-----\nMIIBxDCCAS2gAwIBAgIBAjANBgkqhkiG9w0BAQUFADAAMB4XDTE2MDExODE3MjYw\nOFoXDTE3MDExNjE3MjYwOFowUDELMAkGA1UEBhMCQ0ExDTALBgNVBAMTBFVTRVIx\nEDAOBgNVBAgTB09OVEFSSU8xEDAOBgNVBAoTB0dFTUFMVE8xDjAMBgNVBAsTBUxP\nR0lOMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC3fz6VNUpF4GXBAbN+gjwY\nFx1a3YX5laF5PegW3GVrGCacRp9ZCeYoVecsWBfdT7LoioE0xlbHopPcb6NVqFMc\nPPG+LyUHaauBF7PXcG3gSkcRMj2BxF4baDKfBsbm0vV1R85Yc5k286fr5kybtsD2\nf7it0Pi0b8Zh5bf4esELTQIDAQABMA0GCSqGSIb3DQEBBQUAA4GBAK/p+E2J+hxQ\nzYZmWkZjX1/rdaFcqVXM2srT4+yRx+4chmDM0TATdTru2Y6FwOv1Q7pcY63b7lV4\nwFkgb7BTcbB0kgcWJpmFsSX8Hn8g6yPJoo9cHvwAT59YAS4eCyvg2DwiHewAcxN3\nqtP4V08Q5QdyF0mAQmNMzKTcI6c0axez\n-----END CERTIFICATE-----\n"}
{'Access-Control-Allow-Origin': '*', 'Content-Type': 'application/json', 'Location': '/users/admin/certificates/87d1c75c6b5d27aa375bafb4405e09ecca25963d', 'Content-Length': '0', 'Access-Control-Allow-Credentials': 'true'} {}