easy-rsa con soporte subjectAltName

  • english
  • spanish

Many people think that you can’t serve several webs with the HTTPS protocol using just one IP address and virtual hosts, because the web server (Apache or whichever one you use) seems to use a random X.509 certificate instead of the one configured for each virtual host. If the domain of the certificate the web server chooses doesn’t match the one the user want to access, the web browser shows a security warning which is quite annoying.

The problem is that the SSL negotiation is made right after the TCP/IP session is established and before the HTTP protocol begins, and at this point the web server still doesn’t know what domain (“Host:”) the user wants and which certificate it should use.

The right way to do this is by using a single certificate valid for each and every domain served, by means of the subjectAltName attribute.

The following is a modified version of the great OpenVPN‘s easy-rsa script for the generation and management of X.509 certificates, that allows to create multi-domain certificates with subjectAltName.

Downloads:

5 thoughts on “easy-rsa con soporte subjectAltName

  1. Pingback: Varios websites con HTTPS sobre una misma IP | Jompeich d’er Bisente

  2. Hola, podrías hacer un mini-howto, es que me he descargado el archivo, lo descomprimí, seguí tu README, pero al final me genera error…

    Ha estas fechas si sabes algún otro método avisame, gracias y hasta pronto.

Deja un comentario

Tu dirección de correo electrónico no será publicada. Los campos necesarios están marcados *

*

Puedes usar las siguientes etiquetas y atributos HTML: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>