Platform-Native Trusted Certificates Handling
Retrieves trusted certificates from the operating system using platform-specific APIs
- add maven repository intellij-dependencies
- reference package
org.jetbrains.nativecerts:jvm-native-trusted-roots:VERSION
, setVERSION
to the value displayed in this README's badge. - call
org.jetbrains.nativecerts.NativeTrustedCertificates.getCustomOsSpecificTrustedCertificates
See javadoc at NativeTrustedCertificates.java
If something goes wrong on user's machine, it's possible to gather all debug logging running a special CLI utility:
- See latest version at maven index
- Download jar-with-dependencies at https://packages.jetbrains.team/maven/p/ij/intellij-dependencies/org/jetbrains/nativecerts/jvm-native-trusted-roots/VERSION/jvm-native-trusted-roots-VERSION-jar-with-dependencies.jar
- Run it from the console
path/to/java -jar jvm-native-trusted-roots-VERSION-jar-with-dependencies.jar
. Any Java runtime >= 11 will do, you may reuse JetBrains Runtime from JetBrains IDE as well - Latest line from the console output will point to the logs file
Some tests on Windows/Mac require a user to confirm modification of the trust store, so please run tests locally with system property manual.test
set to true
:
mvn package -Dmanual.test=true
Run job at Publish jvm-native-trusted-roots @ Space