Install Comodo PositiveSSL Certifcate

From TYO Lab Wiki
Jump to: navigation, search

The certificate package received from the CA contains four files:

AddTrustExternalCARoot.crt  
COMODORSADomainValidationSecureServerCA.crt
COMODORSAAddTrustCA.crt  
www_example_com.crt

Apache SSL Files

  • www.example.com.key is the key file generated along with the csr file
  • www.example.com.cer CA certificate
  • www.example.com.crt is the certificate issued by the CA (as listed above: www_example_com.crt)

To generate www.example.com.cer, simply execute the following command in the terminal:

cat COMODORSADomainValidationSecureServerCA.crt COMODORSAAddTrustCA.crt  > www.example.com.cer

Apache Configuration

<VirtualHost *:443>
        SetEnv USE_GOOGLE_CLOUD_SQL on
	Servername example.com
 
	ServerAlias www.example.com
 
        SSLEngine On
        SSLCertificateFile /home/virtwww/example.com/ssl/www.example.com.crt
        SSLCertificateKeyFile /home/virtwww/example.com/ssl/www.example.com.key
        SSLCACertificateFile /home/virtwww/example.com/ssl/www.example.com.cer
 
	DocumentRoot "/home/virtwww/example.com/docs"
 
	DirectoryIndex index.php
 
        <Directory "/home/virtwww/example.com/docs">
                 AllowOverride All
                 #AllowOverride None
                 Order allow,deny
                 Allow from all
                 Options -Indexes +SymlinksIfOwnerMatch +Includes +ExecCGI
        </Directory>
</VirtualHost>

See Also

NGINX SSL Certificate Configuration