php - Apache configuring ssl -


i have following

namevirtualhost *:443  <virtualhost 55.55.55.55:443> #<virtualhost *:443>    sslengine on    sslcertificatefile /path/to/cert/mycert.crt    sslcertificatekeyfile /path/to/key/mykey.key    sslcacertificatefile /path/to/bundle/bundle.crt     serveradmin info@mydomain.com    servername www.mydomain.com    documentroot /var/www/html/  </virtualhost> 

i have java program accesses above url using https. when comment out virtualhost line ip address , uncomment wildcard line, java program gives me "peer not authenticated" exception. when leave is, java program works expected. main reason want way have other subdomains define other sections.

what issue using wildcard virtualhost line?

the issue defining ip address directive being used. however, when used *:443 directive have servername www.mydomain.com , not accessing www when try access page virtualhost block not being used. rather there _default:443 directive in different config file didn't define sslcacertificatefile directive ca cert wasn't being sent, java wasn't getting ca cert.

my solution was: create *:443 directive servername without www.


Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -