Re: wrong certs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The certificates are specified in port based virtual hosts, there is no NameVirtualHost here.  So I would expect the specified certificate to be served on the corresponding port no matter what host header was passed.


On Tue, Oct 22, 2013 at 4:50 PM, Jan Vávra <vavra@xxxxxx> wrote:
Hello.
 For sure have you not forgotten specifying option SSLCertificateKeyFile  ?
 What is the url you are using?
 If you use https://localost:424 instead of https://a:424, you can get weird results.

 I can also try it, if your problem persists. My last several years is full of creating and using certificates ;-)

 Jan.


I two virtual hosts on different ports specify different certificate files, but use the same ServerName, both ports use the same certificate.  Is this expected behavior?


With this config:

Listen *:424 https
<VirtualHost *:424>
ServerName A
SSLCertificateFile 1.crt
</VirtualHost>

Listen *:444 https
<VirtualHost *:444>
ServerName A
SSLCertificateFile 2.crt
</VirtualHost>

connecting to either 424 or 444, I get cert 1.

With this config:

Listen *:424 https
<VirtualHost *:424>
ServerName A
SSLCertificateFile 1.crt
</VirtualHost>

Listen *:444 https
<VirtualHost *:444>
ServerName B
SSLCertificateFile 2.crt
</VirtualHost>

connecting to 424 gets me cert 1, and connecting to 444 gets me cert 2.




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux