RejectedSoftware Forums

Sign up

Certificate Error - Virtual Host Server Alias

Hi,

I receive the following error:

NET::ERRCERTCOMMONNAMEINVALID

from a certificate I use with a vibe.d server. Is it possible to set Apache like Virtual Hosts (ServerAlias)?

Or is there another workaround for this error. Vibe.d version is 0.7.21.

Error link:
https://46.253.146.132:8087/crossdomain.xml

Greetings

Kilo Moana

Re: Certificate Error - Virtual Host Server Alias

On Wed, 02 Sep 2015 13:57:40 GMT, Kilomoana wrote:

Hi,

I receive the following error:

NET::ERRCERTCOMMONNAMEINVALID

from a certificate I use with a vibe.d server. Is it possible to set Apache like Virtual Hosts (ServerAlias)?

Or is there another workaround for this error. Vibe.d version is 0.7.21.

Error link:
https://46.253.146.132:8087/crossdomain.xml

Greetings

Kilo Moana

Virtual hosts are supported using the HTTPServerSettings.hostName field - calling listenHTTP multiple times with the same port but different host names will cause the server to dispatch requests to the appropriate host name automatically. It will also use SNI if different virtual hosts have different TLS certificates.

But the problem in this case AFAICS cannot be solved on the server side. The client simply has to connect to https://yxz.gamigo.com/crossdomain.xml instead of directly to the IP address. The gamigo.com DNS server then has to have the IP address configured for that sub domain.

Re: Certificate Error - Virtual Host Server Alias

On Wed, 09 Sep 2015 06:19:46 GMT, Sönke Ludwig wrote:

On Wed, 02 Sep 2015 13:57:40 GMT, Kilomoana wrote:

Hi,

I receive the following error:

NET::ERRCERTCOMMONNAMEINVALID

from a certificate I use with a vibe.d server. Is it possible to set Apache like Virtual Hosts (ServerAlias)?

Or is there another workaround for this error. Vibe.d version is 0.7.21.

Error link:
https://46.253.146.132:8087/crossdomain.xml

Greetings

Kilo Moana

Virtual hosts are supported using the HTTPServerSettings.hostName field - calling listenHTTP multiple times with the same port but different host names will cause the server to dispatch requests to the appropriate host name automatically. It will also use SNI if different virtual hosts have different TLS certificates.

But the problem in this case AFAICS cannot be solved on the server side. The client simply has to connect to https://yxz.gamigo.com/crossdomain.xml instead of directly to the IP address. The gamigo.com DNS server then has to have the IP address configured for that sub domain.

Thanks you for your reply.

I've already setted it up with the virtual hosts but can't establish a connection from external. Now I am receiving the following error:

Handling of connection failed: Failed to accept SSL tunnel: error:1407609C:SSL routines:SSL23GETCLIENT_HELLO:http request (336027804)

Greetings

Kilo Moana

Re: Certificate Error - Virtual Host Server Alias

Am 11.09.2015 um 16:25 schrieb Kilomoana:

(...)
Thanks you for your reply.

I've already setted it up with the virtual hosts but can't establish a connection from external. Now I am receiving the following error:

Handling of connection failed: Failed to accept SSL tunnel: error:1407609C:SSL routines:SSL23GETCLIENT_HELLO:http request (336027804)

Greetings

Kilo Moana

This usually indicates that the server was accessed using a "http://"
URL instead of "https://". I'm getting the same error when running the
https_server example and navigate to http://127.0.0.1:8080/ instead of
https://127.0.0.1:8080/.