Multiple certificate support revisited

Brandon Black bblack at
Tue Aug 18 14:31:19 UTC 2015

Hi all,

The Wikimedia Foundation has been running nginx-1.9.3 patched for
multi-certificate support for all production TLS traffic for a few
weeks now without incident, for all inbound requests to Wikipedia and
other associated projects of the Foundation.

We initially used the older March variant of Filipe's patches  (
), and last week we switched to using the April 27 variant (
), which is the last known public variant I'm aware of.

These were in turn based on kyprizel's patch (
), which was based on Rob's patch from nearly two years ago (
).  It has a long and colorful history at this point :)

We've forward-ported Filipe's Apr 27 variant onto Debian's 1.9.3-1
package.  Most of the porting was trivial (offsets / whitespace /
etc).  There were a couple of slightly more substantial issues around
the newer OCSP Stapling valid-timestamp checking, and the porting of
the general multi-cert work to the newer stream modules.  The
ported/updated variant of the patches we're running is available here
in our repo:

Our configuration uses a pair of otherwise-identical RSA and ECDSA
keys and an external OCSP ssl_stapling_file (certs are from
GlobalSign, chain/OCSP info is identical in the pair).  Our typical
relevant config fragment in the server section looks like this:

ssl_certificate /etc/ssl/localcerts/;
ssl_certificate_key /etc/ssl/private/;
ssl_certificate /etc/ssl/localcerts/;
ssl_certificate_key /etc/ssl/private/;
ssl_stapling on;
ssl_stapling_file /var/cache/ocsp/unified.ocsp;

Obviously, we'd rather get this work (or something similar) upstreamed
so that we don't have to maintain local patches for this indefinitely,
and so that everyone else can use it easily too.  I'm assuming the
reason it wasn't merged in the past is there may be other issues
blocking the merge that just weren't relevant to our particular
configuration, or are just matters of cleanliness or implementation

I'd be happy to work with whoever on resolving that and getting this
patchset into a merge-able state.  Does anyone know what the
outstanding issues were/are?  Some of the past list traffic on this is
a bit fragmented.

-- Brandon

More information about the nginx-devel mailing list