How to resolve the "Not secure" warning on the browser to make your application secure.
You need to configure the SSL in your application to avoid the - connection not secure - warning. Based on your application deployed in Weblogic or Tomcat, below are high level steps to configure that:
- Create a Java Keystore in the application installed server
- Generate CSR
- Send the CSR to your CA (IT Team)
- Get the signed intermediate and root certs from CA
- Import these certs to keystore with same alias
- Adjust Tomcat / WebLogic settings
Steps for making the connection secure in Tomcat.
- keytool -keystore "D:\server.keystore" -certreq -alias server -keyalg RSA -file "D:\server.csr" -ext "SAN=IP:ip,DNS:host,mailid"
Once we receive the CA signed Root certificate, Intermediate certificate and server certificateà need to import the certificates in the keystore already created with same alias server for server certificate.
- keytool -import -alias root -keystore "D:\server.keystore" -file "D:\rootca.cer"
- keytool -import -alias intermediate -keystore "D:\server.keystore" -file "D:\intermediateca.cer"
- keytool -import -alias server -keystore "D:\server.keystore" -file "D:\serverprd.cer"
- change the server.xml with this keystore and restart the Tomcat.
No comments:
Post a Comment