Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
java Redisson redis client example using SSL
Config config = new Config();
RedissonClient redisson = Redisson.create(config);
RBucket<String> bucket = redisson.getBucket("foo");
System.out.println("bucket " + bucket.get());

This comment has been minimized.

Copy link
Owner Author

@eransharv eransharv commented Jun 14, 2017

Download the certificates through the UI. The zip contains 3 files:

  1. garantia_ca.pem
  2. garantia_user.crt
  3. garantia_user_private.key

Create p12 file, using the crt file and the private key file:

> openssl pkcs12 -export -in garantia_user.crt -inkey garantia_user_private.key -out JedisSSL.p12

Create the jks file, using the pem file:

> keytool -import -alias bundle -trustcacerts -file garantia_ca.pem -keystore keystore.jks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment