Setup an SSL certificate on an EC2 instance

后端 未结 3 925
一生所求
一生所求 2021-01-31 19:16

I\'m having hard time trying to setup an SSL certificate (it\'s a Comodo PositiveSSL purshased from NameCheap) on my EC2 micro instance (I\'m using Amazon Linux AMI 2012.3, whic

3条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-31 19:55

    Sometimes this section

    
    

    prevents your real SSL certificate from being used. If this is the case either comment VirtualHost default or move the SSLCertificate* attributes to it, ie.

    
      SSLCertificateKeyFile /etc/ssl/mydomain_com.key
      SSLCertificateFile /etc/ssl/mydomain_com.crt
      SSLCertificateChainFile /etc/ssl/mydomain_com.ca-bundle
    
    

    Make sure you restart apache after that.

提交回复
热议问题