11/11/2023 0 Comments Install tomcat 8 centos 7usr/java/jdk1.8.0_301-amd64/jre/bin/keytool -import -alias XXXXXXXXXX -keystore /opt/fis/tomcat-bnbkuatrib-9.0.48/pki_cert/keystore -trustcacerts -file pki_certġ 20:28:34.677 SEVERE .LifecycleBase.handleSubClassException Failed to initialize component ] please suggest.Ĭmd used to import certificate into keystore: I have imported CA signed certificate in keystore file and mapped it in server.xml, getting protocol error. Note: This article has been tested with Tomcat 7 on CentOS 6.5 using Java 8. lets access tomcat in your browser on the configured port in step 2. Use your init script (if have) to restart tomcat service, In my case i use shell scripts (startup.sh and shutdown.sh) for stopping and starting tomcat./bin/shutdown.shĪs we have done all the required configuration for tomcat setup. You may also change the port from 8443to some other port if required. Now go to your Tomcat installation directory and edit conf/server.xml file in your favorite editor and update the configuration as below. Install the issued certificate: keytool -import -alias -keystore /etc/pki/keystore -trustcacerts -file Step 3 – Setup Tomcat Keystore Install the intermediate certificate: keytool -import -alias intermed -keystore /etc/pki/keystore -trustcacerts -file intermediate.crt Install the root certificate: keytool -import -alias root -keystore /etc/pki/keystore -trustcacerts -file root.crt intermediate.crt (intermediate certificate)Ĭ. Use this CSR and purchase ssl certificate from any certificate authorities.Īfter issued certificate by CA, you will have following files – root certificate, intermediate certificate, and certificate file. If you want to purchase a valid ssl from certificate authorities, then you need to first create a CSR, Use the following command to do it.Ĭreate CSR: keytool -certreq -keyalg RSA -alias -file svr1.csr -keystore /etc/pki/keystoreĪbove command will prompt for keystore password and generate the CSR file. You don’t need to do this step if you are going to use self-signed SSL certificate. Is CN=Rahul Kumar, OU=Web, O=TecAdmin Inc., L=Delhi, ST=Delhi, C=IN correct? What is the two-letter country code for this unit? What is the name of your State or Province? What is the name of your City or Locality? What is the name of your organizational unit? keytool -genkey -alias -keyalg RSA -keystore /etc/pki/keystore We just need to make sure that JDK or JRE is configured with PATH environment variable. This command is available with JDK and JRE both. keytool is the command line utility for creating and managing keystore. Step 1 – Create a KeystoreĪ Java KeyStore (JKS) is a repository of security certificates. This article can be used for Linux as well as Windows hosts both, the only thing we need to change directory path of keystore. If not you can visit to earlier article Install Tomcat 7 on CentOS, RHEL or Ubuntu, Debian Systems. We are assuming that you already have installed working Tomcat server in your system.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |