To start, I configure HTTPS on Tomcat and I configure a authentication page. My authentication page work in HTTPS with an user in Tomcat-users.xml
<form action="j_security_check" method="POST">
Username:<input type="text" name="j_username"><br>
Password:<input type="password" name="j_password">
<input type="submit" value="Login">
</form>
On server.xml I configure a realm
< Realm className="org.apache.catalina.realm.JNDIRealm"
connectionURL="ldaps://XXXXXXX:636" debug="99"
connectionName="MY_USER"
connectionPassword="MY PASSWORD"
userbase="MY_BASE"
userSearch="XXXXXXXXXXXX"
userSubtree="true"
roleBase="XXXXXXXXXXX"
roleSubtree="true"
roleName="XXXXX"
roleSearch="XXXXXX"/>
I import my certificate with the command keytool.
keytool -import -file om_certificat.pem -keystore cacerts
Should I do something else?
When I start tomcat, I have this warning: SSLHandshakeException
I did this, but doesn't work ! I think, my reaml is correct and when I did the command "keytool", I receive a message "the certificate is added".
So where, is my problem ? I forget a step ?