View the certs: keytool -v -list -keystore /apps/software/jdk1.8.0_92/jre/lib/security/cacerts Add new cert: keytool -importcert -alias TESTNAME -keystore /apps/software/jdk1.8.0_92/jre/lib/security/cacerts -file /tmp/test-public-cert.crt Confirm the addition: keytool -list -keystore /apps/software/jdk1.8.0_92/jre/lib/security/cacerts -alias TESTNAME Note: default password for cacerts file in tomcat is “changeit”
Recent Posts by kvn:
SFTP uses SSH protocol, so first we have to install windows version of openssh the server. Luckily we get the precompiled version of it, so we just have to unzip the contents to a folder. Please note that this installation should be used only in a non-prod environment. Download link : https://github.com/PowerShell/Win32-OpenSSH/releases/download/3_19_2016/OpenSSH-Win64-1.1.zip (I find that […]
Common screen commands that we can use are: Starting Named Session: screen -S session_name Detach from screen session without killing that session: Ctrl+a d Reattaching a screen session: screen -r (works if only one session is present) List all existing screen sessions: screen -ls If there are more than one screen session, we should mention […]
To install multiple npm versions and switch between them, you should use Node Version Manager (nvm) nvm can be installed by the below commands for a particular user where the commands are run: curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash After successful completion, if you want to install a specific Node Js version use the below command: […]
We can use the below command to generate a random alpha-numeric strong password from a linux terminal (bash/sh) < /dev/urandom tr -dc A-Za-z0-9 | head -c14; echo -c –> specifies the length of the random string generated.