Hello.

  I'm trying to set up Apache with SSL on Windows 2000.

  It is working but I have some troubles with the certificates.

  If my Apache server is server.mydomain.com and I want to have two
  websites with HTTPS. The SSL is well enabled and works fine.

  It is what I did :

  * openssl req -config openssl.cnf -new -out -website1.csr

    -> then I put "website1.mydomain.com" as common name

  * openssl rsa -in privkey.pem -out website1.key

  * openssl x509 -in website1.csr -out website1.cert -req -signkey website1.key -days 
365

    -> To have a temporary signed key

  Then, I did all these operation a second time for the website2.
  (with "website2.mydomain.com" as common name for the second .csr)

  At he end, I have these files :

   - website1.cert
   - website1.key
   - website2.cert
   - website2.key

  In httpd.conf I set up both sites :

  <VirtualHost website1.mydomain.com:443>
  SSLEngine On
  SSLCertificateFile ssl/website1.cert
  SSLCertificateKeyFile ssl/website1.key
  </VirtualHost>

  <VirtualHost website2.mydomain.com:443>
  SSLEngine On
  SSLCertificateFile ssl/website2.cert
  SSLCertificateKeyFile ssl/website2.key
  </VirtualHost>

  website1 and website2 has different IP address

  And then, my problem apears.

  In my browser, I can go two both sites with SSL, but both takes the
  same certificate... Why ? Is there a mismatch between name of the
  server and names of the websites ?

-- 
Best regards,
 Ludovic                           
 [EMAIL PROTECTED]


______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl)                   www.modssl.org
User Support Mailing List                      [EMAIL PROTECTED]
Automated List Manager                            [EMAIL PROTECTED]

Reply via email to