Java VMs
How to install Root CA Certificate to all Java store on macOS
In order to intercept HTTPS traffic from Java apps, extra steps are required to install the Proxyman CA Certificate into the Java Key Store.
Intercept Traffic from Unit Test (written by Java or Kotlin)
Intercept Traffic from Java app or CLI
1. Benefit
Proxyman provides a script to help developers automatically install Root Certificate to Java KeyStore with 1 click ✅
Support
$JAVA_HOME
Support
SDKMAN
Support
/usr/libexec/java_home
2. How to use?
1. Install Proxyman CA on your Mac
Before installing Proxyman CA on Java VMs, we have to install it properly on your current Mac machine.
Check out the macOS Guideline:
macOSYou can skip and start the next step if you've done this step.
2. Install Proxyman CA to all Java Key Stores
Certificate Menu -> Install Certificate on Java VMs -> Run Scripts
The script will attempt to find the Key Store location from JAVA_HOME, SDKHOME, or from $(/usr/libexec/java_home) environment and install the CA Certificate if possible
Alternative solution
Check out @yauheniprakapenka solution: https://github.com/ProxymanApp/Proxyman/issues/569#issuecomment-723588490 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
Last updated