Hi all!
I try to 'install' Secure Connect so that my Java application can communicate securely with the Livelink server. Doing so, some questions did arise recently:
- Does the Secure Connect installer do anything else than unzip the libraries (dll + jar) and some certificates to a certain directory? (I assume not)
- If not, it should be sufficient to import the llssl.jar into my Java app, right?
Grabbbing the certificate from IE did work, but once I try to execute the following code, I get an error:
---
LLValue config = new LLValue().setAssoc();
config.add("HTTPS", LLValue.LL_TRUE);
config.add("LivelinkCGI", "/livelink/livelink.exe");
config.add("HTTPUserName", "myUser");
config.add("HTTPPassword", "myPass");
config.add("VerifyServer", LLValue.LL_TRUE);
LLValue rootCACertsList = new LLValue();
LLSession.GetCARootCerts("D:\\TMP\\transfer\\Livelink\\secureTest", rootCACertsList);
config.add("CARootCerts", rootCACertsList);
session = new LLSession(Server, Port, DFT, "myUser", "myPass", config);
doc = new LAPI_DOCUMENTS(session);
LLValue retVal = new LLValue().setAssoc();
doc.GetServerInfo(retVal);
---
The connection values are all ok, port is open. The last line (doc.GetServerInfo(retVal)) gives me the following error:
"Could not create socket output stream. Certificate unknown"
The funny thing is, it does not matter if there is a certificate at the location or not, it always throws the same error.
Does anyone have a clue or hint on what goes wrong and how to solve that?
Thanks a lot!
Regards,
Andi
I try to 'install' Secure Connect so that my Java application can communicate securely with the Livelink server. Doing so, some questions did arise recently:
- Does the Secure Connect installer do anything else than unzip the libraries (dll + jar) and some certificates to a certain directory? (I assume not)
- If not, it should be sufficient to import the llssl.jar into my Java app, right?
Grabbbing the certificate from IE did work, but once I try to execute the following code, I get an error:
---
LLValue config = new LLValue().setAssoc();
config.add("HTTPS", LLValue.LL_TRUE);
config.add("LivelinkCGI", "/livelink/livelink.exe");
config.add("HTTPUserName", "myUser");
config.add("HTTPPassword", "myPass");
config.add("VerifyServer", LLValue.LL_TRUE);
LLValue rootCACertsList = new LLValue();
LLSession.GetCARootCerts("D:\\TMP\\transfer\\Livelink\\secureTest", rootCACertsList);
config.add("CARootCerts", rootCACertsList);
session = new LLSession(Server, Port, DFT, "myUser", "myPass", config);
doc = new LAPI_DOCUMENTS(session);
LLValue retVal = new LLValue().setAssoc();
doc.GetServerInfo(retVal);
---
The connection values are all ok, port is open. The last line (doc.GetServerInfo(retVal)) gives me the following error:
"Could not create socket output stream. Certificate unknown"
The funny thing is, it does not matter if there is a certificate at the location or not, it always throws the same error.
Does anyone have a clue or hint on what goes wrong and how to solve that?
Thanks a lot!
Regards,
Andi