I have created CSR with the command openSSL and purchased crt
files.
openssl genrsa -out private-key.pem 2048
openssl req -new -key private-key.pem -out csr.pem
Will it be OK to install this by using keystore
command as I have not created CSR file by using keytool (but created using openSSL) ?
Another question is I have got three files from the trusted certificate generation company. So how to indentify which one is primary, root, intermediate crt files ? File type(root,intermediate) is not mentioned in the filename itself. I have to run following commands on the basis of crt
file type.
keytool -import -alias root -keystore tomcat.keystore -trustcacerts -file [name of the root certificate]
keytool -import -alias intermed -keystore tomcat.keystore -trustcacerts -file [name of the intermediate certificate]
keytool -import -alias tomcat -keystore tomcat.keystore -trustcacerts -file [name of the certificate]