Signs an existing certificate request.
- Endpoint:
/api/v1/certificates/requests/sign/{id}
- Method:
POST
- Request:
POST /api/v1/certificates/requests/sign/{id}
Path parameters
Parameter |
Type |
Required |
Description |
request_id |
Integer |
Yes |
Certificate request ID to be signed. |
Request parameters
Parameter |
Type |
Required |
Description |
self_signed |
Integer |
Yes |
Indicates if it's self-signed. Values: 1 = true , 0 = false . |
ca |
Integer |
Conditional |
The CA code is responsible for request signing. This code is necessary if self_signed is set to false . |
justification |
String |
No |
Justification text (max. 1024 characters). |
reason |
Integer |
Yes |
Reason code for signing. There must be a valid reason code in Segura®. |
itsm_code |
String |
Conditional |
ITSM code. Required if "Governance code required when justifying" is enabled in the certificate access group. |
Example using cURL
curl -X POST https://[segura_vault_url]/api/v1/certificates/requests/123/sign \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"self_signed": 0,
"ca": 5,
"justification": "Annual certificate renewal",
"reason": 3,
"itsm_code": "CHG0012345"
}'
Response
{
"status": 200,
"message": "Request signed successfully",
"error": false,
"code_request": 123,
"self_signed": 0,
"ca": "5 - GlobalSign",
"justification": "Annual certificate renewal",
"reason": "3 - Scheduled Renewal",
"itsm_code": "CHG0012345"
}