Blue text indicates values that may be customized
Fill in the prompts for your organization information. When it asks for your first and last name, enter the domain name of the server or in our case we will use the name of the machine where EASA Server is installed.
Now we export the newly created certificate inside easastore.jks so we may import it to cacerts file later.
To export the certificate run
keytool –export –alias tomcat –file tomcat.crt –keystore easastore.jks
tomcat
is the alias we set before in the previous command
tomcat.crt
is the name of the certificate file. It can be
.cer or
.crt
easastore.jks
is the keystore we created before in the previous command
It will ask for password and will export the certificate to a file
Run the following command to import the certificate to the tomcat file:
keytool –import –trustcacerts –alias tomcat –file tomcat.crt –keystore cacerts
tomcat
is the alias we set before in the previous command
tomcat.crt
is the name of the certificate file. It can
.cer or
.crt
cacerts is the EASA tomcat keystore
It will ask for cacerts keystore password, default changeit is the default
Once we have easastore.jks with our key pair and cacerts contains our self-signed certificate, skip to Enable TLS using a Certificate Authority and Keystore Explorer