Get all certificates for a service

Use this information to get all available certificates for a service.

The following elements are described:

Request

Aspect Value
Endpoint URL /api/certificates/{serviceName}
HTTP Method GET

Path parameters

Field Description Mandatory
serviceName Name of the service requiring trust for this certificate Yes

Response

Aspect Value
Content-Type application/json
Response Code 200 (OK)

Body

Each configuration contains the following fields:
Field Description
name Name that uniquely identifies the certificate when associating it with a service that requires its use. It is usually the hostname, but this field is not used for certificate verification by the truststore, which extracts the hostname from the contents field.
content The public certificate required in a service's truststore to gain trust of a remote service hosting self-signed certificates. This content should PEM Base64 encoded.

Example

[
  {
​    "name": "test",
​    "content": "-----BEGIN CERTIFICATE-----
MIIDUzCCAjugAwIBAgIUfl09B9lxkCNUGrFfgLH7B2BufvowDQYJKoZIhvcNAQEL
BQAwKDEmMCQGA1UEAxMdVE5DTy1JbnRlcm5hbC1JbnRlcm1lZGlhdGUtQ0EwHhcN
MjAxMjAyMTc1NjM1WhcNMjIxMjAyMTc1NzA0WjAUMRIwEAYDVQQDEwljb25kdWN0
b3IwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDv5EsSBUBKR5pWDmSL
bIAhoElnWSBsWoQspvjpeksbNrGpuFa0MEnEPu4mAqQrzkUq8lYQWgX206UJ2Alo
edzIbMS0U//TR0U7mNeQN3psJTLKrRv/1UKVJgDTiaUTRQPyNvnx3JVV6/C7QVK+
ox42kphXmk0MY7B89x4eo3AKr80PKfqww8f1ys6Bke3Z4Q1coHho9kLz+yOu6QNw
MQ+gie+dxcygHAB1UHCBnPSQ0CoHQVZVuD9S4QQ/fbc3jd5/0VaVbpiuvuGKUnB7
Dl60m6OgWbSe9iYE5wWXZ3zJaOFQ8Z8IxL+wGjjK9E/QJ5ZHLZG0LxGAYZIbj9ZQ
erblAgMBAAGjgYgwgYUwDgYDVR0PAQH/BAQDAgOoMB0GA1UdJQQWMBQGCCsGAQUF
BwMBBggrBgEFBQcDAjAdBgNVHQ4EFgQULobxR39mjjtTmLeL0O79peG+IlQwHwYD
V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