Volker Berlin
2017-02-07 10:55:48 UTC
Hi Jeroen,
We have problems with HTTPS connections from a docker installation. The
certificate can't validate. For validating the Java VM use the root
certificates saved in <java.home>\lib\security\cacerts. In IKVM this is
a virtual file. We receive different files if we read it directly inside
IKVM on different systems.
That the core Questions:
* From where read IKVM the cacerts file?
* Any idea how we can fix this?
Volker
How we have read the file:
File cert = new File(java.lang.System.getProperty("java.home") +
File.separator + "lib" + File.separator + "security" + File.separator +
"cacerts");
FileInputStream input = new FileInputStream(cert);
FileOutputStream output = new FileOutputStream("c:\\temp\\cert_export.txt");
int data = input.read();
while(data != -1)
{
output.write(data);
data = input.read();
}
input.close();
output.close();
We have problems with HTTPS connections from a docker installation. The
certificate can't validate. For validating the Java VM use the root
certificates saved in <java.home>\lib\security\cacerts. In IKVM this is
a virtual file. We receive different files if we read it directly inside
IKVM on different systems.
That the core Questions:
* From where read IKVM the cacerts file?
* Any idea how we can fix this?
Volker
How we have read the file:
File cert = new File(java.lang.System.getProperty("java.home") +
File.separator + "lib" + File.separator + "security" + File.separator +
"cacerts");
FileInputStream input = new FileInputStream(cert);
FileOutputStream output = new FileOutputStream("c:\\temp\\cert_export.txt");
int data = input.read();
while(data != -1)
{
output.write(data);
data = input.read();
}
input.close();
output.close();