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
"SSL handshake failed" error after setting https_proxy variable in terminal for CLI usage #682
Comments
If you're able to see HTTPS response from https://google.com, it means the problem comes from your Rail App. Some libraries need a config to tell Rail app trusts Proxyman self-signed certificate since they're not using Apple Keychain's Trust Store. For example, Java Virtual Machine doesn't use KeyChain, so I have to manually install it. For Ruby and Rails, let me google it 😄 |
I found some tutorials:
Basically, I googled how to use self-signed certificate or disable SSL Verification from Rail app. Please let me know if it works. |
Thank you so much for the prompt reply and investigation! The answer in the first option worked for me (adding The others options appear to be intended for when running the Rails server, but the Rails console does not accept the |
Glad to know that it works for you 👍 I will update the Troubleshooting to let other users know how to fix 😄 |
Also I'm not sure how it works under the hood, but I noticed that HTTP Toolkit has a clever way of Intercepting HTTP from Node.js and other command line tools by setting environmental variables & overrides. It would be great if Proxyman could implement something similar to avoid the need for changes to the code. Either way, thanks again for the help! Feel free to close out this issue if that makes sense to you. |
Thanks for the hint. I will check out to see how this tool can do it automatically 👍 |
Closing this out to help clean up the open issues. In case someone (or future me) stumbles upon this, the initializer step is no longer necessary. See the Ruby docs page for the current solution (the provided environment variable can be set from within the Rails console). |
Proxyman version? (Ex. Proxyman 1.4.3)
2.11.1
macOS Version? (Ex. mac 10.14)
10.15.7
Steps to reproduce
export https_proxy=http://127.0.0.1:9090
(approach copied from this comment, fixing presumed typo in IP address)Proxyman shows:
And directed me to the SSL Error from HTTPS Request/Response troubleshooting page. (I am able to successfully see HTTPS responses when visiting
https://google.com
.)Rails console shows:
Expected behavior
Request is shown in Proxyman with response viewable.
This might be outside the scope of Proxyman, but it seems that Ruby is not detecting the certificate for some reason.
Any help you're able to provide is appreciated.
The text was updated successfully, but these errors were encountered: