NSX-T Data Center REST API

Fetch the server certificate of an LDAP server

Attempt to connect to an LDAP server and retrieve the server certificate it presents.

Request:

Method:
POST
URI Path(s):
/policy/api/v1/aaa/ldap-identity-sources?action=fetch_certificate
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
IdentitySourceLdapServerEndpoint+

Example Request:

POST /policy/api/v1/aaa/ldap-identity-sources/airius-ad?action=fetch_certificate { "url": "ldap://dir01.corp.airius.com", "use_starttls": true, }

Successful Response:

Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
PeerCertificateChain+

Example Response:

{ "certificate": "-----BEGIN CERTIFICATE----- <data> -----END CERTIFICATE-----" }

Required Permissions:

read

Feature:

users_configuration

Additional Errors: