I need to call an endpoint with a self-signed certificate using the Ballerina HTTP client.
import ballerina/http;
http:Client httpClient = check new("<URL>");
Is there a way to disable SSL certificate validation in Ballerina?
I need to call an endpoint with a self-signed certificate using the Ballerina HTTP client.
import ballerina/http;
http:Client httpClient = check new("<URL>");
Is there a way to disable SSL certificate validation in Ballerina?
Copyright © 2021 Jogjafile Inc.
Disabling SSL certificate validation in the Ballerina
http:Client
can be achieved by configuring the secureSocket option in the client configuration.Reference: Client SecureSocket Configuration