Generating SSL Key & CSR (tested on RHEL 7)

Just a note on generating a SSL key and csr (at the same time). This was tested on RHEL 7 for requesting a Comodo SSL certificate from

openssl req -new -newkey rsa:2048 -nodes -keyout -out

The content of the CSR file will be needed to request a SSL certificate. I usually save this as “” (received from Comodo as “domain_com.crt”). You can put together the bundle file with the other files you get from Comodo like this:

cat AddTrustExternalCARoot.crt COMODORSAAddTrustCA.crt COMODORSADomainValidationSecureServerCA.crt >

What you end up with is four files total:


The key, crt, and bundle files will be referenced in your Apache config. Something like this..

<VirtualHost *:443>
DocumentRoot /var/www/
<IfModule mod_ssl.c>
SSLCertificateFile /var/www/ssl/
SSLCertificateKeyFile /var/www/ssl/
SSLCACertificateFile /var/www/ssl/

Leave a Comment