I have configured SSL in tomcat,i am able to access the server using https.
But i am getting the certificate error.I have create below files to resolve the issue.
From certficate authority i have created certnew.cer and certnew.p7b.
I opened certnew.p7b and used sub and root certficate to create root.cer and root1.cer.bacically i converted the root certificates format to base 64 encoded x.509
Then i used below commands to sent the two certificates to keystore.
keytool -import -trustcacerts -alias Root -file "D:\XXXXXXX\root.cer" -keystore "D:\xxxxxxxx\tomcat.keystore"
keytool -import -trustcacerts -alias Root1 -file "D:\XXXXXXX\root1.cer" -keystore "D:\xxxxxxxx\tomcat.keystore"
then i merged the server certificate by using below command
keytool -import -trustcacerts -alias biuser -file "D:\XXXXX\certnew.cer" -keystore "D:\xxxxxx\tomcat.keystore"
I have modified my server.xml file in tomcat as attached. (PFA)
i got a message that certificate key was installed to keystore,but still iam getting certificate error.