-
Notifications
You must be signed in to change notification settings - Fork 179
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
IntelliJ IDEA and Proxyman #569
Comments
@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:
|
Can I send a project in a private message for testing you? |
You can go to Gitter and send me a private message 📩 . Or just email via nghia@proxyman.io |
Sent by email nghia@proxyman.io |
Sorry, can you double-check again? I couldn't find any email from nghia@proxyman.io or support@proxyman.io |
sent to support@proxyman.io |
Received in the Spam email 😅. I'm investigating on it now 👍 |
Turn out that Java has its own The following steps will fix it
sudo keytool -importcert -file ~/Desktop/proxyman-ca.pem -alias ProxymanCertificate -keystore $(/usr/libexec/java_home)/lib/security/cacerts -storepass changeit and type Notes
Reference |
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:
|
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
|
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
1.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. |
It's awesome. Thank you for the detailed solution. I will link it to Proxyman Doc 😄 🙌 🍺 |
keytool -import -trustcacerts -alias mdecert -file {path/To/certificate.pem} -keystore cacerts worked in my case on MacBook |
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:
Run the generated script by Proxyman again (arrows up to return the latest command from history).
P.S. Everything has been done it in the same terminal window as it was created by Proxyman |
Despite having installed Certificates to Java VMs automatically, Proxyman cannot capture my HTTP requests in Java. My environment:Proxyman: 4.8.1 How can I solve this problem? @NghiaTranUIT |
@xiaomamayi what do you mean about:
|
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)
The text was updated successfully, but these errors were encountered: