What are the pre-requisites for connecting the application to import data from LDAP using SSL Connections?

asked 29 Oct '14, 15:22

Aditya's gravatar image

Aditya
10017
accept rate: 6%


The only pre-requisite is to add Certificates to Java Keystore for enabling SSL Connections. Here are the instructions to implement this -

From the terminal, Get the location of JAVA_HOME using the command ‘echo $JAVA_HOME’.

The keytool utility ( found under $JAVA_HOME/bin/ folder) should be invoked to import the new certificate to the existing keystore.

To import the new CA certificate, run the following command - ‘sudo $JAVA_HOME/bin/keytool -import -alias [alias] -file [file location of the new certificate] -keystore $JAVA_HOME/jre/lib/security/cacerts’ The default password for the keystore is 'changeit'. Type 'yes' for the question 'Trust this certificate?'.

The ‘Certificate was added to keystore’ message indicates the successful import of the new certificate. Now restart tomcat to reflect the changes. Now the connection type can be modified to use SSL on port 636.

link

answered 29 Oct '14, 15:26

Aditya's gravatar image

Aditya
10017
accept rate: 6%

great answer. Also make sure you get the key store from a trusted authority. and follow the same steps again when jdk or java is updated.

(30 Oct '14, 13:20) anjan ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×7
×5
×3
×1
×1

Asked: 29 Oct '14, 15:22

Seen: 963 times

Last updated: 30 Oct '14, 13:20