Add an api to disable hostname verification in certificate authentication #49088
Labels
area-core-library
SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.
library-_http
type-enhancement
A request for a change that isn't a bug
I am using secure websocket in Flutter connect to server, my server side is using self-signed certificate. in flutter clent, I store the trusted
CA.pem
in local assets. and load it to verify server certificate. my code is like this:But I keep getting this error:
it is possible to disable hostname verification before handshake?
in Python, we can use
ssl_context.check_hostname = False
,in android we can use
our server is within the local LAN, the IP address is using DHCP just like 192.168.1. 11, etc. so the server address is dynamic. I just don't want to verify the hostname.
The text was updated successfully, but these errors were encountered: