Get CA certificate by ID
const url = 'http://localhost:3000/api/v1/ca-certificates/550e8400-e29b-41d4-a716-446655440000';const options = {method: 'GET', headers: {'X-API-Key': '<X-API-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:3000/api/v1/ca-certificates/550e8400-e29b-41d4-a716-446655440000 \ --header 'X-API-Key: <X-API-Key>'Retrieves detailed information about a specific CA certificate.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Example
550e8400-e29b-41d4-a716-446655440000CA Certificate UUID
Responses
Section titled “ Responses ”CA certificate retrieved successfully
object
Unique CA certificate identifier (UUID)
Human-readable name for the CA certificate
SHA-256 fingerprint of the certificate
Whether this is a root CA certificate
Whether this is the default signing CA
Certificate validity start date
Certificate validity end date (expiration)
Date when the CA certificate was retired
Timestamp when the CA certificate was created
Full subject distinguished name
Full issuer distinguished name
Certificate serial number (hex)
Public key algorithm and size
Signature algorithm
Subject Alternative Names
PEM-encoded public certificate (safe to share)
Example
{ "id": "550e8400-e29b-41d4-a716-446655440000", "name": "Production Root CA", "fingerprint": "A1:B2:C3:D4:E5:F6:A1:B2:C3:D4:E5:F6:A1:B2:C3:D4:E5:F6:A1:B2:C3:D4:E5:F6:A1:B2:C3:D4:E5:F6:A1:B2", "isRoot": true, "isDefault": true, "notBefore": "2024-01-01T00:00:00Z", "notAfter": "2034-01-01T00:00:00Z", "retiredAt": "2024-06-01T00:00:00Z", "createdAt": "2024-01-01T00:00:00Z", "subject": "CN=Root CA, O=logiccloud, C=US", "issuer": "CN=Root CA, O=logiccloud, C=US", "serialNumber": "01:AB:CD:EF", "keyAlgorithm": "RSA-4096", "signatureAlgorithm": "SHA256withRSA", "subjectAltNames": [ "DNS:example.com", "IP:192.168.1.1" ], "certificate": "-----BEGIN CERTIFICATE-----\n...\n-----END CERTIFICATE-----"}Unauthorized - Invalid or missing authentication
Forbidden - Insufficient permissions
CA certificate not found