trustedCert.add(gssContext.getMyProxyManager().getTrustedCertsLoc() + "/*.0");
trustedCert.add(gssContext.getMyProxyManager().getTrustedCertsLoc() + "/*.pem");
char[] c = null;
DirectoryCertChainValidator dcValidator = new DirectoryCertChainValidator(trustedCert, Encoding.PEM, -1, 60000, null);
bis = new ByteArrayInputStream(bos.toByteArray());
bufis = new BufferedInputStream(bis);
PEMCredential pem = new PEMCredential(bufis, c);
secProperties = new DefaultClientConfiguration(dcValidator, pem);