In order to intercept HTTPS traffic from Java apps, it requires extra steps to install Proxyman CA Certificate into Java Key Store.
- Intercept Traffic from Unit Test (written by Java or Kotlin)
- Intercept Traffic from Java app or CLI
Before installing Proxyman CA on Java VMs, we have to install properly on your current mac machine.
Check out macOS Guideline:
{% content-ref url="macos.md" %} macos.md {% endcontent-ref %}
If you've done this step, you can skip and start the next step.
- Certificate Menu -> Install Certificate on Java VMs
- The script will attempt to find the Key Store location from JAVA_HOME environment and install the CA Certificate if possible
{% hint style="info" %} You can find the script at /Applications/Proxyman.app/Contents/Frameworks/ProxymanCore.framework/Versions/A/Resources/install-certificates-java.sh {% endhint %}
{% hint style="info" %} The script might require permission for EventKit because Proxyman triggers the script by Apple Script in order to install under admin permission. {% endhint %}
- Check out @yauheniprakapenka solution: ProxymanApp/Proxyman#569 (comment) if you get the following 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 target