# Multi certificate support returns Letsencrypt Intermediate Certificate twice

**URL:** <https://www.ruby-forum.com/t/multi-certificate-support-returns-letsencrypt-intermediate-certificate-twice/244707>\
**Category:** NGINX\
**Created:** [May 31, 2016, 1:13pm UTC](https://www.ruby-forum.com/t/multi-certificate-support-returns-letsencrypt-intermediate-certificate-twice/244707 "2016-05-31T13:13:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rafa\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/958977/32.png) [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Post date:** [May 31, 2016, 1:13pm UTC](https://www.ruby-forum.com/t/multi-certificate-support-returns-letsencrypt-intermediate-certificate-twice/244707/1 "2016-05-31T13:13:02Z")

</div>

Hello folks,

I have the following setup:  
Nginx 1.11.0  
Libressl 2.3.4

1 Letsencrypt RSA 2048 certificate  
1 Letsencrypt ECDSA p256 certificate

The certificate files are both chained. Both have the Letsencrypt RSA  
2048  
X3 intermediate certificate at the end of the file.

The problem is:  
Nginx returns this intermediate certificate twice when connecting via  
https.  
Regardless whether you connect via RSA client or ECDSA client.

Is this a bug? Or a configuration issue?

Thank you in advance!

Posted at Nginx Forum:

> **[Multi certificate support returns Letsencrypt Intermediate Certificate twice](https://forum.nginx.org/read.php?2,267240,267240#msg-267240)**
>
> Hello folks, I have the following setup: Nginx 1.11.0 Libressl 2.3.4 1 Letsencrypt RSA 2048 certificate 1 Letsencrypt ECDSA p256 certificate The certificate files are both chained. Both have the Letsencrypt RSA 2048 X3 intermediate ce

---

<div class="post-metadata">

**Author:** ![mastercan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/a698b9/32.png) [@mastercan](https://www.ruby-forum.com/u/mastercan)\
**Post date:** [May 31, 2016, 3:18pm UTC](https://www.ruby-forum.com/t/multi-certificate-support-returns-letsencrypt-intermediate-certificate-twice/244707/2 "2016-05-31T15:18:39Z")

</div>

Hello!

On Tue, May 31, 2016 at 07:12:20AM -0400, mastercan wrote:

> X3 intermediate certificate at the end of the file.
> 
> The problem is:  
> Nginx returns this intermediate certificate twice when connecting via https.  
> Regardless whether you connect via RSA client or ECDSA client.
> 
> Is this a bug? Or a configuration issue?

Only OpenSSL 1.0.2 and higher support separate chains for  
different certificates. With older versions (including LibreSSL)  
there is only one chain for all certificates, and all chained  
certificates will be added to it. That is, if chains are the same  
you have to leave only one of them.

–  
Maxim D.

> **[nginx](http://nginx.org/)**

---

<div class="post-metadata">

**Author:** ![mastercan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/a698b9/32.png) [@mastercan](https://www.ruby-forum.com/u/mastercan)\
**Post date:** [May 31, 2016, 5:04pm UTC](https://www.ruby-forum.com/t/multi-certificate-support-returns-letsencrypt-intermediate-certificate-twice/244707/3 "2016-05-31T17:04:23Z")

</div>

Thanks a lot for the fast response!

Posted at Nginx Forum:

> **[Re: Multi certificate support returns Letsencrypt Intermediate Certificate twice](https://forum.nginx.org/read.php?2,267240,267249#msg-267249)**
>
> Hello folks, I have the following setup: Nginx 1.11.0 Libressl 2.3.4 1 Letsencrypt RSA 2048 certificate 1 Letsencrypt ECDSA p256 certificate The certificate files are both chained. Both have the Letsencrypt RSA 2048 X3 intermediate ce
