Directory Service Public Keys List


This endpoint provides the ability to get a list of all Public Keys for a particular Directory Service.


Retrieves a list of Public Keys for a Directory Service.


Requests will be a JWE encrypted JSON payload with the following attribute:

service_id (string):The identifier of the Directory Service in order to retrieve the Public Keys.


{"service_id": "ce5ab88c-e79e-4049-bb36-4f8709122648"}


Responses will be a JWE encrypted JSON payload consisting of an array of Public Key entities with the following attributes:

id (string):The MD5 fingerprint of the public key.
public_key (string):The public key itself.
date_created (string):An ISO-8601 formatted date signifying the time when the public key was added to the Directory Service.
date_expires (string):An ISO-8601 formatted date signifying the time when the public key expires and is no longer active.
active (boolean):A boolean value that answers: “Is the current public key active?”

Example of result when the Directory Service has Public Keys:

        "id": "e2:f4:14:25:24:45:66:a2:c1:6f:d6:0c:c9:00:09:66",
        "public_key", "-----BEGIN PUBLIC KEY-----
-----END PUBLIC KEY-----",
        "date_created": "2010-01-01T00:00:00Z",
        "date_expires": "2020-01-01T00:00:00Z",
        "active": true
        "id": "24:25:f2:b8:ff:df:f7:91:f4:13:68:c8:c9:3c:3a:00",
        "public_key", "-----BEGIN PUBLIC KEY-----
-----END PUBLIC KEY-----",
        "date_created": "2010-01-01T00:00:00Z",
        "date_expires": null,
        "active": false

Example of result when the Directory Service has no Public Keys:



403 Forbidden:If the Directory Service ID supplied belongs to a Directory other than the one identified by the provided credentials, a 403 Forbidden error will be returned.
400 Invalid / DIR-004:If a Directory Service ID supplied does not exist, a 400 Invalid Request response with the error code DIR-004 will be returned.

User Contributed

LaunchKey links to user contributed code as a resource to its community. LaunchKey does not in any way guarantee or warrant the quality and security of these code bases. User contributed code is supported by the creators. If you do find a link from the site to user contributed code that is malicious or inappropriate in any way, please report that link to LaunchKey immediately and we will investigate the claim. Submit any issue to LaunchKey support at ×