I purchased a trial Thawte certificate. They gave me 3 certs:
- root certificate
- intemediate certificate
- trial certificate
I did the follows:
- Created keystore and local key pair (keytool -genkey -alias vskladchinu -keyalg RSA -keystore /usr/keystore)
- Created csr (keytool -certreq -keyalg RSA -alias vskladchinu -file certreq.csr -keystore /usr/keystore)
- I got 3 certificates from thawte (based on generated csr)
- I installed root and intermediate certs (keytool -import -alias root -keystore /usr/keystore -trustcacerts -file root.crt; keytool -import -alias intermediate -keystore /usr/keystore -trustcacerts -file intermediate.crt)
- I installed my trial thawte cert (keytool -import -alias vskladchinu -keystore /usr/keystore -file cert.crt)
i setup web.xml of tomcatr 7 server. And run the application. But browser said - there are only 2 certs in the certificate chain root and trial, but root can not be trusted (i guess without intermediate).
How do i make intermediate sertificate work?
java keystore install certificate
? – home