Skip to content
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 when listen Python #948

Open
Drovosek01 opened this issue Aug 1, 2021 · 6 comments
Open

SSL Handshake Failed when listen Python #948

Drovosek01 opened this issue Aug 1, 2021 · 6 comments
Assignees
Labels
✅ Done Ticket is addressed and fixed. Feature request Request new feature goes here

Comments

@Drovosek01
Copy link

Proxyman version? (Ex. Proxyman 1.4.3)

2.30.0

macOS Version? (Ex. mac 10.14)

macOS 10.14.6

Steps to reproduce

  1. Execute in terminal - /bin/bash -c "$(curl -fsSL https://gist.githubusercontent.com/ThisIsNoahEvans/f595e2e59ff4a00fdcf2decdc4415428/raw/install.sh)"
  2. Start listen Python in ProxyMan
  3. Open Adobe Packager.command in Application folder

Expected behavior

I expect to see the standard data display in the Response clause

Screenshots (optional)

image
image
image

@NghiaTranUIT NghiaTranUIT self-assigned this Aug 1, 2021
@NghiaTranUIT
Copy link
Member

Hey @Drovosek01 Thanks for the report.

From the last screenshot, it seems Python doesn't trust self-signed certificate by default. As a result, SSL would be failed.

You have to tell Python to use Proxyman Root Certificate at ~/.proxyman/proxyman-ca.pem (I assume that you've installed and trust the Certificate, if not please follow Certificate Menu -> Install Certificate on This Mac).

Here is some solutions, which I found in StackOverflow:

  1. https://stackoverflow.com/a/46337779/3127477
export SSL_CERT_FILE=~/.proxyman/proxyman-ca.pem
  1. https://stackoverflow.com/a/43935319/3127477
export REQUESTS_CA_BUNDLE=~/.proxyman/proxyman-ca.pem
  1. Or Googling with macos python trust self signed certificate

Please try one of them and I believe that it would fix your problem 👍

@Drovosek01
Copy link
Author

Thank you very much, I managed to fix the error with Python only on the third attempt, when I saved this in bash_profile

image

It seems to me that it will be useful to add this information to the Proxyman documentation and to the menu items, where the "Install Certificate on" items are..."

image

@NghiaTranUIT
Copy link
Member

Glad to know that it works 😄

It makes sense to add this document to the Certificate Menu. I'm going to implement it now 👍

@NghiaTranUIT NghiaTranUIT added the Feature request Request new feature goes here label Aug 2, 2021
@NghiaTranUIT NghiaTranUIT added this to the Proxyman 2.31.0 🎒 milestone Aug 2, 2021
@NghiaTranUIT
Copy link
Member

Done 🎉 Beta build: https://proxyman.s3.us-east-2.amazonaws.com/beta/Proxyman_2.30.0_Update_Certificate_guideline_for_ruby_and_python.dmg

Screen Shot 2021-08-03 at 17 52 57

@NghiaTranUIT NghiaTranUIT added the ✅ Done Ticket is addressed and fixed. label Aug 3, 2021
@Drovosek01
Copy link
Author

But now, after I executed the above commands in the terminal, the python script without Proxyman stopped working for me.
That is, when Proxyman is running, the Python script runs without errors.

If I close Proxyman, and then run the Python script again, the following errors appear:

image

I managed to fix them when I commented out the last line in the file ."bash_profile"

image

Please add this information to the documentation.

@NghiaTranUIT
Copy link
Member

Thanks for your insight @Drovosek01 I will add to the Doc 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✅ Done Ticket is addressed and fixed. Feature request Request new feature goes here
Projects
None yet
Development

No branches or pull requests

2 participants