Building a Credential from a Signature
Matthew Berry
matthew.william.berry at gmail.com
Tue Dec 31 19:48:25 EST 2013
> I keep hitting troubles deep in the bowels of
> org.apache.commons.ssl.TrustMaterial which leads me to believe I'm on
> the wrong track. The goal is simply to extract the Credential,...
The troubles I'm facing seem to stem from my copy of
lib/security/cacerts containing no entries in it.
The not-yet-commons-ssl library expects there to be at least one entry
in there or in jsse_cacerts.
// org/apache/commons/ssl/TrustMaterial.java (0.3.9)
//
// Should validate our keystore to make sure it has at least ONE
// certificate entry:
KeyStore ks = this.jks;
boolean hasCertificates = false;
// ...
// (Further down after a call to TrustMaterial(SIMPLE_TRUST_TYPE_TRUST_ALL); )
this.jks = CACERTS != null ? CACERTS.jks : JSSE_CACERTS.jks;
// Both of which are Null
So maybe this is where I am going wrong, but I feel like it shouldn't
matter one bit who the cacerts
file claims I trust. All I want to do is build a credential from an
XML representation. It's very possible
(and I am going to try this next if it isn't too much work) that the
example code snippet I originally
provided works fine for RSA credentials.
-Matt
More information about the dev
mailing list