mirror of
https://github.com/ProxymanApp/Proxyman.git
synced 2026-04-26 08:35:53 +03:00
[GH-ISSUE #569] IntelliJ IDEA and Proxyman #568
Labels
No labels
Discussion
Feature request
In Progress...
Plugins
Waiting response
Windows
Windows
bug
duplicate
enhancement
feature
good first issue
iOS
macOS 10.11
question
wontfix
✅ Done
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Proxyman#568
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @yauheniprakapenka on GitHub (Aug 4, 2020).
Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/569
Does anyone know how to make friends IntelliJ IDEA 2020 and Proxyman 2.3.0?
When the proxy is enabled, when I execute a network request, an error occurs
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:397)
at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:302)
at sun.security.validator.Validator.validate(Validator.java:262)
at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:324)
at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:229)
at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:124)
at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1621)
... 49 more
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:141)
at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:126)
at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280)
at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:392)
@NghiaTranUIT commented on GitHub (Aug 4, 2020):
@yauheniprakapenka Look like the Networking library doesn't accept the Proxyman certificate, so you get a ton of SSL Error.
If you don't mind, please help me answer the following questions that help me to investigate:
@yauheniprakapenka commented on GitHub (Aug 4, 2020):
Can I send a project in a private message for testing you?
@NghiaTranUIT commented on GitHub (Aug 4, 2020):
You can go to Gitter and send me a private message 📩 .
Or just email via nghia@proxyman.io
@yauheniprakapenka commented on GitHub (Aug 4, 2020):
Sent by email nghia@proxyman.io
@NghiaTranUIT commented on GitHub (Aug 4, 2020):
Sorry, can you double-check again? I couldn't find any email from nghia@proxyman.io or support@proxyman.io
@yauheniprakapenka commented on GitHub (Aug 4, 2020):
sent to support@proxyman.io
@NghiaTranUIT commented on GitHub (Aug 4, 2020):
Received in the Spam email 😅. I'm investigating on it now 👍
@NghiaTranUIT commented on GitHub (Aug 4, 2020):
Turn out that Java has its own
cacertand it doesn't install by Proxyman by default.The following steps will fix it
and type
yesto install the certificate3. Then trying again, it should work
Notes
cacertlocation is different on platform or JDK version. If the above scripting is invalid (KeyStore not found), please look at the reference to find the correct cacert path.Reference
@yauheniprakapenka commented on GitHub (Aug 4, 2020):
Thank you for a lot! You are a brilliant developer.
Your command doesn't work for me. But on your example of your command, I found a working one for me:
sudo keytool -importcert -file ~/Desktop/proxyman-ca.pem -alias ProxymanCertificate -keystore /Library/Java/JavaVirtualMachines/jdk1.8.0_201.jdk/Contents/Home/jre/lib/security/cacerts -storepass changeit@NghiaTranUIT commented on GitHub (Aug 5, 2020):
Hey @yauheniprakapenka , if you don't mind, please help me check out this build: https://proxyman.s3.us-east-2.amazonaws.com/beta/Proxyman_2.3.0_Install_Certificate_Java.dmg
@yauheniprakapenka commented on GitHub (Nov 8, 2020):
Good day!
I want to share another way to solve this problem, if the script from the Proxyman does not help.
When you receive an error
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target1.For example, you are sending a request through Intellij IDEA using the okhttp library
2.This request displays an error in the console
3.Go to Proxyman - Certificate - Install certificate on Java VMs - Run Script
5.We check in Intellij IDEA what is selected. I had it like that. Does not work.
6.Change to the version indicated in the terminal
7.Submit the request again. It works.
@NghiaTranUIT commented on GitHub (Nov 8, 2020):
It's awesome. Thank you for the detailed solution. I will link it to Proxyman Doc 😄 🙌 🍺
@azarouski commented on GitHub (Jul 7, 2022):
keytool -import -trustcacerts -alias mdecert -file {path/To/certificate.pem} -keystore cacerts
worked in my case on MacBook
@foxtrotdev commented on GitHub (Oct 14, 2022):
I had some problems with installing the certificates by Proxyman on my MacOs but I had to link JAVA_HOME with current JAVA version. Here are my steps:
java --version/usr/libexec/java_home -VRun the generated script by Proxyman again (arrows up to return the latest command from history).
My command was
P.S. Everything has been done it in the same terminal window as it was created by Proxyman
@xiaomamayi commented on GitHub (Jun 26, 2023):
Despite having installed Certificates to Java VMs automatically, Proxyman cannot capture my HTTP requests in Java.
My environment:
Proxyman: 4.8.1
jdk: 1.8.0_291
The jdk version used by my java project is consistent with
JAVA_HOME.How can I solve this problem? @NghiaTranUIT
@NghiaTranUIT commented on GitHub (Jun 26, 2023):
@xiaomamayi what do you mean about: