public KeysPostResponse DirectoryV3ServiceKeysPost(ServiceKeysPostRequest request, EntityIdentifier subject)
        {
            var response          = ExecuteRequest(HttpMethod.POST, "/directory/v3/service/keys", subject, request, null);
            var decryptedResponse = DecryptResponse <KeysPostResponse>(response);

            return(decryptedResponse);
        }
        public string AddServicePublicKey(Guid serviceId, string publicKeyPem, bool active, DateTime?expires)
        {
            var request = new ServiceKeysPostRequest(
                serviceId,
                publicKeyPem,
                expires?.ToUniversalTime(),
                active
                );
            var response = _transport.DirectoryV3ServiceKeysPost(request, _directoryId);

            return(response.Id);
        }