com.box.sdk.BoxAPIException

tip

Import the server certificate into your truststore.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • Error when using box-java-sdk - Box
    via by Unknown author,
  • How to use mocking in this case?
    via by Unknown author,
  • Java JDK 7 SSL Issue
    via by Unknown author,
  • Received fatal alert: bad_certificate RestAssured
    via Stack Overflow by sam
    ,
    • com.box.sdk.BoxAPIException: Couldn't connect to the Box API due to a network error. at com.box.sdk.BoxAPIRequest.trySend(BoxAPIRequest.java:395) at com.box.sdk.BoxAPIRequest.send(BoxAPIRequest.java:209) at com.box.sdk.BoxAPIRequest.send(BoxAPIRequest.java:184) at com.box.sdk.JSONIterator.loadNextPage(JSONIterator.java:74) at com.box.sdk.JSONIterator.loadNextJsonObject(JSONIterator.java:90) at com.box.sdk.JSONIterator.hasNext(JSONIterator.java:32) at com.box.sdk.BoxItemIterator.hasNext(BoxItemIterator.java:28) at boxtester.test.main(test.java:11) Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderE xception: unable to find valid certification path to requested target at sun.security.ssl.Alerts.getSSLException(Unknown Source) at sun.security.ssl.SSLSocketImpl.fatal(Unknown Source) at sun.security.ssl.Handshaker.fatalSE(Unknown Source) at sun.security.ssl.Handshaker.fatalSE(Unknown Source) at sun.security.ssl.ClientHandshaker.serverCertificate(Unknown Source) at sun.security.ssl.ClientHandshaker.processMessage(Unknown Source) at sun.security.ssl.Handshaker.processLoop(Unknown Source) at sun.security.ssl.Handshaker.process_record(Unknown Source) at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)

    Users with the same issue

    Unknown visitor2 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor2 times, last one,
    Unknown visitor1 times, last one,
    107 more bugmates