GET repository/certificates/{certificateId}
Gets the identified Certificate in consumer's Environment.
Remarks
C4M Error Code returned:
null Certificate returned successfully.
CertificateNotFound The requested certificate does not exist on this environment.
403 - Forbidden The authenticated user doesn't have permission to access the resource.
Request Information
Parameters
| Name | Description | Additional information |
|---|---|---|
| certificateId | Certificate identifier. |
Define this parameter in the request URI. |
Response Information
Certificate as CertificateResponseDto registered in environment with the given Id.
Response body formats
application/json
Sample:
{
"alias": "MyCertificate",
"creationDate": "2020-05-15T17:03:27.6960553-03:00",
"expirationDate": "2020-05-15T17:03:27.6960553-03:00",
"hasPrivateKey": true,
"id": "dd53df53-5136-431a-90cb-4c5c8375d195",
"issuer": "sample string 5",
"publicKeyAlgorithm": "sample string 6",
"publicKeySize": 7,
"serialNumber": "sample string 8",
"signatureAlgorithm": "sample string 9",
"subject": "sample string 10",
"thumbprint": "sample string 11",
"version": 12
}
text/json
Sample:
{
"alias": "MyCertificate",
"creationDate": "2020-05-15T17:03:27.6960553-03:00",
"expirationDate": "2020-05-15T17:03:27.6960553-03:00",
"hasPrivateKey": true,
"id": "aa6e0d42-6c1f-44c1-b611-631786c42a9e",
"issuer": "sample string 5",
"publicKeyAlgorithm": "sample string 6",
"publicKeySize": 7,
"serialNumber": "sample string 8",
"signatureAlgorithm": "sample string 9",
"subject": "sample string 10",
"thumbprint": "sample string 11",
"version": 12
}