Posts

Showing posts from 2024
  Like the King commands... When thinking of commands in Linux, I am reminded of the old stories of kings and military leaders who issue orders to their subordinates, expecting them to be executed promptly and accurately. Just like the king's command, a Linux command must be carried out in a timely and precise manner to achieve the desired result. Similarly, when we use commands to instruct our computers, we are telling them to perform specific tasks quickly and accurately, with results we are awaiting. Commands like "ls" or "ps -f | grep '.txt'" are common examples we use daily. These commands simplify our lives, and just like the orders of a king, they are often crucial and lawful. I’m referring to the way we use Linux commands to execute tasks and view their results. Linux is a powerful and wonderful operating system that presents its results in a structured and informative manner. However, mastering these commands and understanding their outputs requ...

Renew SSL certificates in Tomcat

Renew SSL certificates in Tomcat  Step 1: Prepare your SSL certificate files You have to import all the necessary certificate files separately in the correct order. Run the commands below for each certificate type: Root Certificate : keytool -import -alias root -keystore example.jks -trustcacerts -file root.crt Intermediate Certificate : keytool -import -alias intermediate -keystore example.jks -trustcacerts -file intermediate.crt Step 2: Edit the Tomcat configuration file After the import, your next step is to edit the Tomcat configuration file. By default, it’s called  server.xml  and resides in the  Home_Directory/conf  folder. Locate the configuration file.You should see a few lines of code similar to the example below: <Connector port="443" protocol="HTTP/1.1" SSLEnabled="true" scheme="https" secure="true" clientAuth="false" sslProtocol="TLS" keystoreFile= "/your_path/yourkeystore....