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

Disable mandatory TLS verification with --insecure #1401

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

d4xfe
Copy link

@d4xfe d4xfe commented Apr 29, 2024

getpeercert() only returns the certificate with enabled certificate validation. Because of this, I updated it to getpeercert(True), which will return a binary blob of the servers certificate regardless of the verification mode.

I added the util method cert_der_to_dict using ssl internals to convert the blob to a python dict like getpeercert() would.
The flag --insecure was introduced to disable certificate validation of ssl sockets.
This allows TLS interception when the server is using a self-signed certificate.

This is my first pull request on GitHub and I'm still a bit confused. So if I should change anything let me know.

@abhinavsingh
Copy link
Owner

@d4xfe Thank you, looks excellent considering this is your first PR. Congratulations.

Can you please:

  1. Resolve conflicts
  2. Sync your branch with develop. For some reasons, I see diffs in your PR which are not part of your changes

@abhinavsingh abhinavsingh self-requested a review April 30, 2024 03:00
@abhinavsingh abhinavsingh added the bot:chronographer:skip PR using this label is exempted from CHANGELOG management label Apr 30, 2024
@d4xfe
Copy link
Author

d4xfe commented Apr 30, 2024

@abhinavsingh Thanks. I've synced the branches and I don't conflicts anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot:chronographer:skip PR using this label is exempted from CHANGELOG management
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants