Skip to content
This repository has been archived by the owner on Jul 31, 2019. It is now read-only.

Add the option to ignore SSL verfication errors #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

oiosaway
Copy link

Fixes #7

@@ -89,7 +92,11 @@ public SSLSocket createSocket(InetAddress host, int port) throws IOException {
* @return The remote server's certificate chain, or null if a connection has not reached handshake yet.
*/
public X509Certificate[] getServerChain() {
return mTrustWrapper.getServerChain();
if(mTrustWrapper instanceof JumbleTrustManagerWrapper) {
Copy link
Owner

Choose a reason for hiding this comment

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

Perhaps it may be a good idea to make an interface for a trust manager that can provide the remote's certificate chain. instanceof is generally discouraged.

Copy link

Choose a reason for hiding this comment

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

LOL, this patch is hilarious

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants