-
Notifications
You must be signed in to change notification settings - Fork 75
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
Connection attempts keep failing with asio.ssl error #168
Comments
Hello @dbouras . Thanks for reaching out to us. I think the issue is specific to your system environment, since I am able to successfully execute the localproxy binary from https://github.com/aws-samples/aws-iot-securetunneling-localproxy/actions/runs/11434364820 on my machine. Can you share more details about both the source and destination machines and which one is having the concerned error. Also please share the command you are using to execute the binary for reference. |
Hi @ig15 ,
with the following defined in the environment:
I fully realize that not being able to replicate consistently is a huge blocker but wanted to report it anyway just in case someone had come across this issue in the past and had some ideas on what to try... |
Related to aws-samples#168 Add retry mechanism and detailed logging for SSL handshake in `src/WebSocketStream.cpp`. * **Retry Mechanism**: Add a retry mechanism for SSL handshake in the `async_ssl_handshake` function with a limit of 3 attempts and a delay of 1 second between retries. * **Detailed Logging**: Add detailed logging for SSL handshake errors in the `async_ssl_handshake` function to capture and log SSL handshake failures. * **Fallback Mechanism**: Add a fallback mechanism to disable SSL verification if the handshake fails after the retry limit is reached. Update `README.md` to include troubleshooting steps for SSL handshake issues. * **Troubleshooting Steps**: Add a new section in the "Troubleshooting" section to provide steps for troubleshooting SSL handshake issues, including checking SSL certificates, verifying network configuration, enabling detailed logging, using the retry mechanism, disabling SSL verification, checking the system environment, updating dependencies, and consulting documentation.
Describe the bug
Platform: Apple M2 Pro running MacOS Sequoia (15.0.1)
Two (seemingly) identical systems (at least, as of this writing, I am not able to pinpoint some difference that may be the root cause) behave quite differently: one connects without issues, the other gets stuck in a loop retrying and always failing with:
[error] Could not perform SSL handshake with proxy server: asio.ssl error
To Reproduce
I have not found a way to reproduce it unfortunately;
localproxy
works flawlessly on all but one system.Expected behavior
A successful connection.
Actual behavior
The connection attempt fails;
localroxy
then goes into a loop of unsuccessful retries.Logs
An excerpt from the debug log is as follows:
Environment (please complete the following information):
Additional context
N/A
The text was updated successfully, but these errors were encountered: