Page 1 of 1

HTTPS to "untrusted" site

Posted: Thu Oct 14, 2010 5:27 pm
by DavidRansdell
I want to download the Federal Reserve ACH directory periodically and put it into a IBM I file for checking bank accounts against. The file I am attempting to retrieve is located here:
URI is 'https://www.fededirectory.frb.org/FedACHdir.txt'

When my project runs it fails with the following error:
[8098 - Connect to ACH Website] com.ibm.jsse2.util.h: PKIX path building failed: java.security.cert.CertPathBuilderException: PKIXCertPathBuilderImpl could not build a valid CertPath.;
internal cause is: java.security.cert.CertPathValidatorException: The certificate issued by O=Federal Reserve Banks, C=US is not trusted; internal cause is: java.security.cert.CertPathValidatorException: Certificate chaining error

I have imported the certificate from their site into:
serverCertificateStore = /linoma/goanywhere/userdata/keys/x509/privateKeys.jks
but the project doesn't seem to care that I trust this site...

What more can I do to get this simple task done automatically?

Currently I
  • open the site,
    save the file onto a network drive,
    use a IBM File Transfer to overwrite a file
    run a RPG program to move the file contents into the file I desire.
Seems like a job for Go Anywhere....