Dear Gregory & co,
First, thank you for all the wonderful work you have been doing on the
snapframework. I have a situation where I need some sage advice.
Here is the environment:
I am using snap-server to host several different domains. I have 3
dns domains all pointing to the same IP address.
Ex:
nadineloveshenry.com -> 64.251.15.192
ladron.mx -> 64.251.15.192
christines.mx -> 64.251.15.192
depending on the value of rqHostName, the code decides what pages to
serve. This works great with http.
Now here is my question: Is there any way to do this with https? I
have a certificate for
nadineloveshenry.com, and https works fine with
that, but when I try to go to ladron or christines, I get the "your
connection is not secure" screen with:
ladron.mx uses an invalid security certificate.
The certificate is only valid for
nadineloveshenry.com.
Error code: SSL_ERROR_BAD_CERT_DOMAIN
I can see that the setSSLCert and setSSLKey functions only take
Strings (FilePath), not lists, so I can't have more than one cert per
server. Can you suggest a way to get around this? Any pointers will
be greatly appreciated.
Best wishes,
Henry Laxen