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

Allow ssl errors #107

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

Max1tors
Copy link

@Max1tors Max1tors commented Oct 24, 2024

PR Checklist

What is the current behavior?

Does not allow SSL errors or self-signed certificates

What is the new behavior?

Enables allowing ssl errors and self-signed certificates

Fixes/Implements/Closes #99.

Copy link
Contributor

@jerbob92 jerbob92 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the MR! Requested some changed.
Isn't this missing the iOS implementation as well?

README.md Outdated Show resolved Hide resolved
Copy link
Contributor

@jerbob92 jerbob92 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the MR! Requested some changed.
Isn't this missing the iOS implementation as well?

@Max1tors
Copy link
Author

Thanks for your comments, I made improvements to the code now. iOS is still missing. I'll make a separate pull request for it if I get it working. But this only adds it to the Android side.

@Max1tors Max1tors requested a review from jerbob92 October 25, 2024 11:16
Copy link
Contributor

@jerbob92 jerbob92 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the update! Can you please add the iOS functionality to the same PR? I don't really see a good reason to merge in functionality which is missing iOS support.

README.md Outdated
*/
allowSslErrors(true);
export declare function enableSSLValidation(): void;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's fine to keep only 1 method, I just wanted it renamed

InitClient();

try {
TrustManagerFactory trustManagerFactory = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My intention was to do this inside InitClient while building the client, but before running client.build()

@Max1tors
Copy link
Author

I've now finishe iOS side of it.

@Max1tors Max1tors requested a review from jerbob92 December 17, 2024 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Request hangs when using a Self-Signed certificate
2 participants