wildcard SSL certificate on apache 2 -
for reason ssl working fine on main domain www.domainname.com / domainname.com not working on subdomains (im getting "this connection untrusted") here steps went through:
created server certificate
openssl req -new -newkey rsa:2048 -nodes -keyout domainname.key -out domainname.csrtyped *.domainname on domain name
copied certificate content ssl certificate supplier
- downloaded generated certificate
- on httpd.conf
documentroot "/opt/bitnami/apps/wordpress/htdocs" servername domainname.com serveralias *.domainname.com serveradmin admin@domainname.com errorlog "/opt/bitnami/apache2/logs/https_error_log" transferlog "/opt/bitnami/apache2/logs/https_access_log" sslengine on sslcertificatefile "/opt/bitnami/apache2/conf/domainname.com.crt" sslcertificatekeyfile "/opt/bitnami/apache2/conf/domainname.key" sslcertificatechainfile "/opt/bitnami/apache2/conf/gd_bundle.crt" <filesmatch "\.(cgi|shtml|phtml|php)$"> ssloptions +stdenvvars </filesmatch> <directory "/opt/bitnami/apache2/cgi-bin"> ssloptions +stdenvvars </directory> browsermatch "msie [2-5]" \ nokeepalive ssl-unclean-shutdown \ downgrade-1.0 force-response-1.0 customlog "/opt/bitnami/apache2/logs/ssl_request_log" \ "%t %h %{ssl_protocol}x %{ssl_cipher}x \"%r\" %b" </virtualhost>
Comments
Post a Comment