Certificates
Create certificate
Creates a new certificate with the provided details
post/api/certificates
Request body
Example request
{
"name": "New Server SSL Certificate",
"description": "New SSL certificate for securing server communications",
"options": {
"commonName": "example.com",
"countryName": "FR",
"stateOrProvinceName": "Savoie",
"localityName": "Chambéry",
"organizationName": "Example Inc.",
"keySize": 2048,
"daysBeforeExpiry": 365
}
}Response
Certificate created successfully
Example response
{
"id": "entity123",
"createdBy": {
"id": "abc123",
"friendlyName": "John Doe (john.doe)"
},
"updatedBy": {
"id": "abc123",
"friendlyName": "John Doe (john.doe)"
},
"createdAt": "2023-10-31T12:34:56.789Z",
"updatedAt": "2023-10-31T12:34:56.789Z",
"name": "Server SSL Certificate",
"description": "SSL certificate for securing server communications",
"publicKey": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA...",
"certificate": "-----BEGIN CERTIFICATE-----\nMIIDXTCCAkWgAwIBAgIJAKoK/heBjcOuMA0GCSqGSIb3DQEBBQUAMEUx...",
"expiry": "2023-10-31T12:34:56.789Z"
}