Closed Katekko closed 4 years ago
Set the client
in HttpConnectionOptions
like so:
HttpConnectionOptions(
client: IOClient(HttpClient()..badCertificateCallback = (x, y, z) => true)
)
This will force the client to accept whatever cert is being used. If you need to use a specific cert, you can set the SecurityContext
within the HttpClient
.
I need a way to set certificate false when I are in localhost. Otherwise thats the error that I get :(