You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Http.requestUrl() result in error: ValueError: check_hostname requires server_hostname
If targeting Python with python_version>=3.4 flag. Ssl.context created in python.net.SslSocket uses SERVER_AUTH by default, it sets
context.verify_mode to CERT_REQUIRED and context.check_hostname to True.
…oundation#8401)
The issue where SslSocket throws an exception is due to hostName being
null in wrap_socket. This fix delays wrap_socket until after connect is
called, so we can pass a host in.
I just ran into this in Haxe 4.2.5 and traced it down to an issue with the order in which the various sockets/ssl methods are called. I just issued a pull request for a fix; happy to adjust it as needed to make that fix acceptable.
#11050)
* [python] Fixed python.net.SslSocket when python-version >= 3.4 (#8401)
The issue where SslSocket throws an exception is due to hostName being
null in wrap_socket. This fix delays wrap_socket until after connect is
called, so we can pass a host in.
* added compilation flag to only run this for python
* removed sys.net.Host import; it was unused, and it caused issues on
non-sys targets
* fixed test to work across platforms (see comment in code)
fixed copy/paste error in code comments
* added gettimeout, getblocking, and getsockopt to
python.lib.socket.Socket
(also added overload of setsockopt to take an Int value)
updated Issue8401 to remove casts
* replaced eq with feq in test for settimeout values
Http.requestUrl() result in error:
ValueError: check_hostname requires server_hostname
If targeting Python with python_version>=3.4 flag.
Ssl.context created in python.net.SslSocket uses SERVER_AUTH by default, it sets
context.verify_mode to CERT_REQUIRED and context.check_hostname to True.
Several infos i found in python.net.SslSocket
I'm guessing it has to do with REST API that requires CLIENT side certificate authentication.
My thoughts (Keep in mind I'm a beginner and I do not understand much of TLS encryption stuff...)
Add a flag in the Http.requestUrl() to specify the side of authentication.
Set the value of hostname that seems to be lost somewhere?
Also:
Disable check_hostname solve the issue...
Set Purpose.CLIENT_AUTH for create_default_context solve the issue...
Is it an issue related to Haxe? Is it an issue related to Python, is it an issue with how I use the Http.requestUrl stuff?
Best regards;
The text was updated successfully, but these errors were encountered: