# HttpClient.UseServerCertificateValidation(Boolean) Method
> Version: _Available or changed with runtime version 15.0._
If true, the client validates the server certificate for all HTTP requests. If false, it skips validation.
## Syntax
```al
[CurrentUseServerCertificateValidation := ]  HttpClient.UseServerCertificateValidation(UseServerCertificateValidation: Boolean)
```
> NOTE
> This method can be invoked using property access syntax.
## Parameters
HttpClient
Type: httpclient-data-type
An instance of the httpclient-data-type data type.
UseServerCertificateValidation
Type: ../boolean/boolean-data-type
Set to true to validate the server certificate; when set to false the validation is skipped. Default value is true.
## Return Value
*[Optional] CurrentUseServerCertificateValidation*
Type: ../boolean/boolean-data-type
Specifies whether the client validates the server certificate or not.
## Remarks
This property is enabled by default. It's controlled by a feature key so that you can disable the validation for the whole tenant and roll back to the previous behavior, which is the way it worked in previous versions.
If you want to roll back to the previous behavior, we suggest you do the following:
 Update your AL code to uptake the new UseServerCertificateValidation.
 Disable the validation with the new feature key for now, but be aware that it will be removed in version 27.0.
> NOTE
> The feature key will be removed in version 27.0. This means that you must uptake the new property in version 26.0. With the feature key, you have a 6 month transition window to make the code changes without causing customer downtime.
## Related information
httpclient-data-type
Getting started with AL<../../devenv-get-started>
Developing extensions<../../devenv-dev-overview>

Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/httpclient/httpclient-useservercertificatevalidation-method, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact. https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/httpclient/httpclient-useservercertificatevalidation-method/
