Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

Authenticating with server in Java

  • 23-01-2012 11:44PM
    #1
    Registered Users, Registered Users 2, Paid Member Posts: 8,027 ✭✭✭
    Something about sandwiches


    I'm having a bit of trouble getting authenticated to a server over HTTPS.

    here is the error I get:
    javax.net.ssl.SSLHandshakeException: com.ibm.jsse2.util.g: 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 CN=XXX Internal Root CA, O=XXX Corporation, C=US is not trusted; internal cause is:
    java.security.cert.CertPathValidatorException: Certificate chaining error

    When I visit the site in my browser, it pops up a login box. But if I cancel that, theres also a form. I'm guessing it may be stopping at whatever prompts the first login box to pop up. Either that or my code is way off!

    Can anyone tell me why I'm getting that "Certificate chaining error", and point me in the direction of some actual working code samples?

    Cheers.


Comments

Advertisement
Advertisement