java - HTTPS Requests with ClientResource -
when create requests http works this:
clientresource resource = new clientresource(protocol + "://localhost:" + port + path); however when create httpsrequests error:
starting internal [https/1.1] server on port 8081 starting internal http client recoverable error detected (1001), attempting again in 2000 ms. recoverable error detected (1001), attempting again in 2000 ms. stopping internal server i know when use client object should set that:
client client = new client(protocol.https); so, suspicious setting clientresource. tried didn't solve:
resource.setprotocol(protocol.https); also tried that:
client client = new client(protocol.https); resource.setprotocol(protocol.https); resource.setnext(client); however got same logs. can see logs, first creates https server http client.
any ideas?
problem related certificates. i've set trust keystore , used example.
Comments
Post a Comment