-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fail of the AcquireCredentialsHandleA for TLS 1.3 #2709
Comments
It look like you are trying to use the IoT sdk not this sdk. Can you open an issues here(aws-iot-device-sdk-cpp-v2) and provide a code sample that reproduces this? |
Hello @jmklix Thanks for reacting on my issue ! It's because this is submodule of current SDK Regards, |
Already did right targeting team and registered issue for AWS-C-IO, |
Hi @YuriL180821 , Thank you for reporting this issue. Best regards, |
|
Describe the bug
AcquireCredentialsHandleA return 0x80090331 for TLS1.3 protocol which leads to negotiation error AWS_IO_TLS_ERROR_NEGOTIATION_FAILURE. Same methods with same credentials works fine for lower TLS versions
Expected Behavior
AcquireCredentialsHandleA should return SEC_E_OK for any TLS protocol versions
Current Behavior
AcquireCredentialsHandleA fails for latest master on given moment
https://github.com/awslabs/aws-c-io/blob/a3555c86bd10149a1ab0c1b2810756ec54cfbe3a/source/windows/secure_channel_tls_handler.c#L1738
Reproduction Steps
activate AWS_IO_TLSv1_3 version for tls handler
Possible Solution
According to MS learn
https://learn.microsoft.com/en-us/answers/questions/708734/tls-1-3-doesnt-work-on-windows-11-through-schannel
SCH_CREDENTIALS - Win32 apps | Microsoft Learn
i.e current sc_ctx->credentials which is pointer to SCHANNEL_CRED structure
should be replaced on SCH_CREDENTIALS
Additional Information/Context
AWS CPP SDK version used
1.26.0, 1.30.0
Compiler and Version used
MSVS 2022 Professional
Operating System and version
Windows 11 x64
The text was updated successfully, but these errors were encountered: