Skip to main content
1-Visitor
February 14, 2017
Question

While installing Tomcat on RH Linux 7.0 I am facing problem while executing this command

  • February 14, 2017
  • 1 reply
  • 2052 views

While installing Tomcat on RH Linux 7.0 I am facing problem while executing this command

sudo cp ~/.keystore /usr/share/tomcat8/8.0.33/conf/

sudo chown root:tomcat8 /usr/share/tomcat8/8.0.33/conf/.keystore

sudo chmod 640 /usr/share/tomcat8/8.0.33/conf/.keystore

and the output is :,

cp: cannot stat /home/admin/.keystore: No such file or directory

1 reply

20-Turquoise
February 14, 2017

Are you logged into a local or a remote machine? Can you verify that the .keystore is actually located in your root directory? Seems like the copy command is failing as it can't find the keystore file in ~/ (which resolves to /home/admin)

1-Visitor
February 14, 2017

how keystore will be generated ?

20-Turquoise
February 14, 2017

Per the installation guide, you have to create a self signed certificate first:

23. Create self-signed certificate: $ $JAVA_HOME/bin/keytool -genkey -alias tomcat8 -keyalg RSA