basho / basho_docs

Basho Products Documentation
http://docs.basho.com
Other
168 stars 191 forks source link

Java Client - Certificate Based Authentication [JIRA: DOC-842] #2421

Closed shaneutt closed 4 years ago

shaneutt commented 7 years ago

The current documentation says that Certificate Based Authentication for the Java client is unsupported.

Example:

https://docs.basho.com/riak/kv/2.2.0/developing/usage/security/java/#certificate-based-authentication

The client does now support this.

Java Key Store (JKS) Examples:

https://github.com/basho/riak-java-client/blob/9bed4fb9502b410665160b06f7382d02988dbf3e/src/test/java/com/basho/riak/client/core/operations/itest/ITestJKSSecuredConnection.java#L16-L15 https://github.com/basho/riak-java-client/blob/riak-client-2.1.1/src/test/java/com/basho/riak/client/core/operations/itest/ITestJKSSecuredConnection.java#L50 https://github.com/basho/riak-java-client/blob/riak-client-2.1.1/src/test/java/com/basho/riak/client/core/operations/itest/ITestJKSSecuredConnection.java

PEM Examples:

https://github.com/basho/riak-java-client/blob/9bed4fb9502b410665160b06f7382d02988dbf3e/src/test/java/com/basho/riak/client/core/operations/itest/ITestPemSecuredConnection.java#L15-L15 https://github.com/basho/riak-java-client/blob/riak-client-2.1.1/src/test/java/com/basho/riak/client/core/operations/itest/ITestPemSecuredConnection.java#L46-L50 https://github.com/basho/riak-java-client/blob/riak-client-2.1.1/src/test/java/com/basho/riak/client/core/operations/itest/RiakPemConnection.java

Getting the certs imported correctly:

https://github.com/basho/riak-java-client/blob/develop/Makefile#L43-L62