Skip to content

Trustmanager not set in DatabaseClientFactory when creating client objects #971

Closed
@srinathgit

Description

@srinathgit

So we can address your issue, please include the following:

Version of MarkLogic Java Client API

See Readme.txt
4.0-4

Version of MarkLogic Server

See admin gui on port 8001 or run xdmp:version() in Query Console - port 8000)
9.0-nightly

Java version

Run java -version
8

OS and version

For MAC, run sw_vers.
For Windows, run systeminfo | findstr /B /C:"OS Name" /C:"OS Version"
For Linux, run cat /etc/os-release and uname -r

Input: Some code to illustrate the problem, preferably in a state that can be independently reproduced on our end

The private SSLContext createSSLContext() in DatabaseClientFactory , when initializing the sslContext doesn't pass the trustManager. What I see is
sslContext.init(keyMgr, null, null);

Actual output: What did you observe? What errors did you see? Can you attach the logs? (Java logs, MarkLogic logs)

Expected output: What specifically did you expect to happen?

sslContext.init(keyMgr, trustManager, null);

Alternatives: What else have you tried, actual/expected?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions