-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed Android 5+ using Netty 4.1.0.CR2-SNAPSHOT documented.
- Loading branch information
Showing
1 changed file
with
1 addition
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8fb7c92
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi
Iam trying to port littleproxy-mitm to my Samsung Galaxy S5 android phone. I had used below code configurations
try {
// Create an SSLContext that uses our TrustManager
SSLContext context = SSLContext.getInstance("TLS");
TrustManager[] trustManagers = InsecureTrustManagerFactory.INSTANCE
.getTrustManagers();
context.init(null, trustManagers, null);
Error Faced - Iam getting a gateway timeout error..When i checked pcap logs, client hello , server hello negotiations are happening. Also observed that some fields in client hello request are not populated(like Extension-Server). I included littleproxy-mitm pem as user trusted certificate
Can you pls let me know if any additional configuration has to be included to make it work on Android phone?
8fb7c92
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
8fb7c92
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Frank
Thx for your suggestion..
I used Netty 4.1.0.CR3 and bouncycastle 1.54 on my Samsung S5. But still iam getting the gateway timeout error. Is there any additional 3rd party library dependancy involved here?
Request sent out
CONNECT www.google.com:443 HTTP/1.1
Host: www.google.com
User-Agent: Dalvik/2.1.0 (Linux; U; Android 5.0; SM-G900I Build/LRX21T)
content-length: 0
Via: 1.1 localhost
Response Received
HTTP/1.1 504 Gateway Timeout
Content-Length: 15
Content-Type: text/html; charset=UTF-8
8fb7c92
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@karthikarunach it works for me with bcprov-jdk15on-1.51.jar, bcpkix-jdk15on-1.51.jar and Netty 4.1.0.CR3 on some Android 4 ... 6 devices.
Hmm, please answer:
8fb7c92
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've never used an URLConnection based client on Android. I'm using a Mozilla browser which provides the possibility to set the proxy settings and to import a pem file by an add-on.
You could try to set
withAllowLocalOnly(false)
in the Bootstrap and use the proxy with an external client.I use logback-android-classic-1.1.1-2.jar, logback-android-core-1.1.1-2.jar to get log files.