To support two-way TLS authentication between the client and the server, HTTPClient/RestClient/TokenRequest/OAuthRequest objects provide the following functions:
-
SetClientCert -- Sets the client certificate that will be used to access the server.
-
ClearClientCert -- Clears the client certificate that is set with SetClientCert.
RestClient/TokenRequest/OAuthRequest objects provide the following properties: IgnoreServerCertificate property and CheckForServerCertRevocation property. (HTTPClient object has already supported these properties in version 2019 R3)
The client can also access the server without using any client certificate (anonymous access), by taking advantage of the following property in HTTPClient/RestClient/TokenRequest/OAuthRequest objects:
-
AnonymousAccess property -- Setting this property value to True will allow the client to access the server anonymously.