Shibboleth Identity Provider Security Advisory [4 October 2017]
Cantor, Scott
cantor.2 at osu.edu
Thu Nov 16 10:08:39 EST 2017
> Is it possible we're misunderstanding each other here and conflating Java runtime default
> behavior with an explicit reference via trustFile to a file, provided by
> Java, containing CA certs? Or I'm still fundamentally misunderstanding the
> context of the CA here.
If by "leave it to Java" you meant "set tustFile to the cacerts file", then yes, I misunderstood you because you didn't say anything about actually pointing the IdP at the file. What most people mean by "leave it to Java" is "do nothing and wave hands in magic gesture". That is what we're not supporting.
But having said that, no, you can't do this. Java's cacerts file is a keystore. The trustFile setting doesn't support them, as far as I can tell, it supports PEM and DER formats via a Spring Resource path (file, classpath, HTTP resource, etc.)
The source of your confusion seems to be not *how* to configure it, but where you get the CA file(s) from. Yes, you could in theory let Java supply them via certs. No, in practice, you can't, because it's not in a usable format.
It's also not wise, because pointing a server trust setting at 150 CAs, some of which are probably operated by somebody in Albania with a laptop, is decidedly unwise.
But if you want to write an extractor to pull out all the certs from cacerts into a big PEM concatenated file and run that every time you updated Java, yes, you could do that.
-- Scott
More information about the users
mailing list