This is a migrated thread and some comments may be shown as answers.

Not able to monitor non standard port of a java program

2 Answers 192 Views
Windows
This is a migrated thread and some comments may be shown as answers.
Eddie
Top achievements
Rank 1
Eddie asked on 31 Jan 2021, 05:16 PM

I tried everything I could find as hint:

Starting the java program with:

-DproxySet=true

-Dhttp.proxyHost=127.0.0.1

-Dhttp.proxyPort=8888

-Dhttps.proxyHost=127.0.0.1

-Dhttps.proxyPort=8888

-Djavax.net.ssl.trustStore=C:[path]\FiddlerRoot.cer;-Djavax.net.ssl.trustStorePassword=[pw]

 

FiddlerRoot.cer is imported in keystore.

capture https from all processes is active, other options see attachment.

I am starting the java program in intellij.

What am I missing?

 

Eddie

2 Answers, 1 is accepted

Sort by
0
Nick Iliev
Telerik team
answered on 01 Feb 2021, 10:26 AM

Hey Eddie,

 

Perhaps you need to configure IntelliJ to use the Fiddler proxy and root certificate - check this blog post for additional details on achieving that.

 

Regards,
Nick Iliev
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Eddie
Top achievements
Rank 1
answered on 28 Feb 2021, 10:21 AM

Just to let ou know:

Reason was that the framwéwork I used ignored all proxy settings. It even did not work on the command line.

George
Top achievements
Rank 1
commented on 10 Jan 2023, 06:18 AM

@Eddie, how did you figure this out? I'm using Amazon's Cunetto 11 Java. I suspect that this might be the case for me as well but don't know how to confirm. And how did you get around this? Cheers!
Nick Iliev
Telerik team
commented on 11 Jan 2023, 09:42 AM | edited

Hey George,

 

You most likely need to configure your Amazon service to respect the Fiddler proxy explicitly. Check the following sources on possible approaches/solutions:

https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-proxy.html

https://docs.telerik.com/fiddler-everywhere/knowledge-base/capturing-aws-traffic

 

 

George
Top achievements
Rank 1
commented on 12 Jan 2023, 10:42 PM

@Nick

I'm using Amazon's version of JDK and JRE (aka Corretto*, not Cunetto, sorry) but not doing anything related to AWS.

* (Amazon patches JDK/JRE for security holes for their Java based runtimes in AWS)

Nick Iliev
Telerik team
commented on 13 Jan 2023, 11:09 AM | edited

Hey George,

 

It seems that Amazon Corretto is just as OpenJDK in terms of proxy settings, so you should follow the same approaches that are valid for OpenJDK. Apart from explicitly configuring your Java app to use Fiddler, you can set your JDK/JRE to respect the system proxy.

-Djava.net.useSystemProxies=true
Tags
Windows
Asked by
Eddie
Top achievements
Rank 1
Answers by
Nick Iliev
Telerik team
Eddie
Top achievements
Rank 1
Share this question
or