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:

  1. created server certificate

    openssl req -new -newkey rsa:2048 -nodes -keyout domainname.key -out domainname.csr

  2. typed *.domainname on domain name

  3. copied certificate content ssl certificate supplier

  4. downloaded generated certificate
  5. 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

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -