Thursday 17 August 2017

How to create jks file form crt

Step 1

Create a store with temporary key inside

keytool -genkey-alias temp -keystore yourkeystore.jks -storepass brain123

Step 2

Delete existing entry

keytool -delete -alias temp -keystore yourkeystore.jks -storepass brain123

Step 3

We have empty keystore, we can check with below command

keytool -list -keystore yourkeystore.jks -storepass brain123

Step 4

Now we can import our certificate to the store

keytool -import -alias alias -file certificate.crt -keypass -keystore yourkeystore.jks -storepass brain123

That's all now you have jks file from crt.

Permanent hostname setup for RHEL7

Step 1 Set the host name on NMTUI tool like following nmtui set host name   then save and exit Step 2 add the following l...