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

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -