I am currently overriding X509TrustManager to allow all certs as a temporarily \'solution\' (an unsafe one at that). I am trying to figure out how I would go about adding in
All you need to do is return the certificate from getAcceptedIssuers
. See this
InputStream inStream = new FileInputStream("fileName-of-cert");
CertificateFactory cf = CertificateFactory.getInstance("X.509");
X509Certificate cert = (X509Certificate)cf.generateCertificate(inStream);
inStream.close();
and then return that in an array within the method
One possibility would be to temporarily add the problematic certificate to your JVM's key store as a trusted certificate.