Welcome! Log In Create A New Profile

Advanced

Re: Multiple certificates in one server block?

B.R. via nginx
August 07, 2017 01:36PM
Jim already replied with his ECDSA+RSA example in a single server block.
You can also serve several names from a single server block.

However, I never tested serving a certificate for several domains all
served by the same virtual server block. I *suppose* nginx might be clever
enough to select the right certificate(s) to serve. ANyone to test that?
Anyway, for that to work, you will need to ensure both ends support SNI
with their TLS library.
First impressions, though: it does not look as an ideal setup to me, as it
most probably will end up in a spaghetti configuration nightmare. It
depends, as always. A long (potentially repetitive), clear (as in 'server
block-complete'), nginx configuration properly managed through
configuration management tools will always appeal the most to me for
debugging purposes.
---
*B. R.*

On Fri, Aug 4, 2017 at 3:47 PM, Olaf van der Spek <
nginx-forum@forum.nginx.org> wrote:

> Jim Ohlstein Wrote:
> > Letsencrypt allows multiple domain names in the same certificate.
>
> I know, just wondering if nginx supported multiple certs per server.
>
> My problem:
> I've got multiple servers and I'd like the servers to be accessible via the
> common name (ex.com) and via their dedicated name (a.ex.com, b.ex.com,
> etc).
> How do I do this with letsencrypt?
> If I use certbot the verification request might / will be server by another
> host and will thus fail.
>
> Posted at Nginx Forum: https://forum.nginx.org/read.
> php?2,275855,275860#msg-275860
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Multiple certificates in one server block?

Olaf van der Spek August 04, 2017 08:39AM

Re: Multiple certificates in one server block?

jeffdyke August 04, 2017 09:34AM

Re: Multiple certificates in one server block?

Olaf van der Spek August 04, 2017 09:36AM

Re: Multiple certificates in one server block?

Jim Ohlstein August 04, 2017 09:42AM

Re: Multiple certificates in one server block?

Olaf van der Spek August 04, 2017 09:47AM

Re: Multiple certificates in one server block?

jeffdyke August 04, 2017 09:48AM

Re: Multiple certificates in one server block?

B.R. via nginx August 07, 2017 01:36PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 109
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready