Venus 6 upgrade HttpRequest error: Could not create SSL/TLS secure channel

Hi there! I was wondering if anyone else has encountered this type of error after upgrading their Hamilton software to Venus 6. Specifically, this occurs when we are trying to use the HSLHttp library to send requests using a Bearer authorization token. This was working fine before the Venus 6 install but now doesn’t seem to be able to communicate. I’m not sure if it’s a computer issue or a Venus software issue. I have wrriten the full error message below:

Method::HSLHttp::HttpPOST : - progress; Response Content: System.Net.Http.HttpRequestException: An error occurred while sending the request. —> System.Net.WebException: The request was aborted: Could not create SSL/TLS secure channel. at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult, TransportContext& context) at System.Net.Http.HttpClientHandler.GetRequestStreamCallback(IAsyncResult ar)

Hi @leahc,

A couple of follow-up questions:

  1. Were there any other changes made to the computer other than upgrading to VENUS 6? For example, upgrading from Win10 to Win11, or Windows updates.

  2. What version of the HTTP library are you using?

Thank you,
Dan

Hi @DanHartman_Hamilton! I don’t believe there were any other computer updates, but we are currently using HTTP 2.7 library.

@DanHartman_Hamilton So we tried downgrading the library down to the 2.5.2 version and it seems to be working now! I’m not sure what the differences between the two versions are, but I wonder if there is some increased security in the 2.7 one that is blocking the HTTP requests

I’m trying to use HSLHttp Library version 2.0 to send directly message to slack, using web_hook, and getting a error similar error about the SSL/TLS secure channel.

https://httpbin.org/post works just fine.

It seems to me like maybe it’s a .net error? I’m happy to get any suggestion regarding the OS / .net.

I have Windows 11 Pro, and VENUS 4.5.0.7977 with the following:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\CDF
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v2.0.50727
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v3.0
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v3.5
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4.0

Detailed log:
2024-07-31 11:15:21> HSLHttp : Initialize - progress; Creating Hamilton HTTP object: Hamilton.HSLHttp
2024-07-31 11:15:21> HSLHttp : Initialize - progress; Hamilton HTTP object Created.
2024-07-31 11:15:21> HSLHttp : SetAuthentication - progress; Http Authentication: BearerToken
2024-07-31 11:15:21> HSLHttp : HttpPOST - progress; Request Uri: https://hooks.slack.com/services/XXXX/XXXX/XXXX
2024-07-31 11:15:22> HSLHttp : HttpPOST - progress; Response Status Code: 0
2024-07-31 11:15:22> HSLHttp : HttpPOST - progress; Response Content: System.Net.Http.HttpRequestException: An error occurred while sending the request. —> System.Net.WebException: The request was aborted: Could not create SSL/TLS secure channel. at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult, TransportContext& context) at System.Net.Http.HttpClientHandler.GetRequestStreamCallback(IAsyncResult ar) — End of inner exception stack trace —

I have the same error too, we tried removing the “s” in “https” and it worked. I also have an issue with setting the session id using the “cookie” key. Do you guys know how I can get that done? Doesn’t seem like “cookie” us a recognized key.