java api with self-signed certificate | jdutra | 2012-05-02 09:00 | |||||||||||||||||||||||||||||
Status: Closed | |||||||||||||||||||||||||||||||
I am trying to test some java code that uses the labkey api on our development server, which has a self-signed certificate. I get a slew of certification errors from httpclient. I am using the following: Connection cn = new org.labkey.remoteapi.Connection("https://my-development-server/labkey"); cn.setEmail(userName); cn.setPassword(passWord); cn.setAcceptSelfSignedCerts(true); Adding the last line did not change anything at all. Does the setAcceptSelfSignedCerts method work? Or am I doing something wrong? If someone could suggest a way to work around this, that would be terrific. - Jen |
|||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||