in src/main/java/org/jetbrains/nativecerts/NativeTrustedCertificates.java [31:52]
public static Collection<X509Certificate> getCustomOsSpecificTrustedCertificates() {
try {
if (isLinux) {
return LinuxTrustedCertificatesUtil.getSystemCertificates();
}
if (isMac) {
List<X509Certificate> admin = SecurityFrameworkUtil.getTrustedRoots();
return new HashSet<>(admin);
}
if (isWindows) {
return Crypt32ExtUtil.getCustomTrustedRootCertificates();
}
LOGGER.warning("Unable to get custom trusted certificates list from the operating system: unsupported system, not a Linux/Mac OS/Windows: " + System.getProperty("os.name"));
return Collections.emptySet();
} catch (Throwable t) {
LOGGER.warning(renderExceptionMessage("Unable to get custom trusted certificates list from the operating system", t));
return Collections.emptySet();
}
}