Skip to content

Instantly share code, notes, and snippets.

@ldclakmal
Last active August 26, 2021 11:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ldclakmal/c1e6d288f33a5bea61a31c249ad6d933 to your computer and use it in GitHub Desktop.
Save ldclakmal/c1e6d288f33a5bea61a31c249ad6d933 to your computer and use it in GitHub Desktop.
import ballerina/http;
http:Client clientEP = check new("https://localhost:9092",
secureSocket = {
cert: "/path/to/client-public.crt",
key: {
certFile: "/path/to/server-public.crt",
keyFile: "/path/to/server-private.key"
}
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment