X509 certificate (.cer) file for private Application. I have installed openssl-0.9.8h-1-setup in my windows desktop. And then through command prompt (run as admin) I have executed these code. it has generated a new folder with 3 main files "src" , "manifest", "uninstall". but in any of these folder I am not able to find x509.cer file. 1 Answer. You don&x27;t. You generate a CSR. The CSR is given to the CA, and the CA gives you the certificate in return. The bible describes how to generate a CSR, and how to take the CSR and root key and turn it into an x509. I think it&x27;s in chapter 5.
The certificate will be valid for 365 days, and the key (thanks to the -nodes option) is unencrypted. openssl req &92; -x509 -nodes -days 365 -sha256 &92; -newkey rsa2048 -keyout mycert.pem -out mycert.pem. Using this command-line invocation, you&x27;ll have to answer a lot of questions Country Name, State, City, and so on. echo openssl sclient -connect hoststud.com443 2>devnull openssl x509 -noout -dates This will provide result for expiry date of SSL certificate installed on server for this domain. Now, to check " Who issued the certificate " we can run this command.
Generation of Keys and Certificates. In order to create the certificate authority (CA) , run the following command. The question for the common name (CN) might, e.g., be answered with CA. It might be a good idea to omit the -nodes parameter and thus encrypting the CA key. cd rootcerts openssl req -nodes -new -x509 -keyout ca.key -out ca.crt.