# Nginx upstream certificate validation

**URL:** <https://community.nginx.org/t/nginx-upstream-certificate-validation/10164>\
**Category:** General Discussion\
**Tags:** reverse-proxy\
**Created:** [July 18, 2026, 6:39am UTC](https://community.nginx.org/t/nginx-upstream-certificate-validation/10164 "2026-07-18T06:39:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Esakki\_Selvaraj](https://drob5swvtjqxg.cloudfront.net/user_avatar/community.nginx.org/esakki_selvaraj/32/4801_2.png) [@Esakki\_Selvaraj](https://community.nginx.org/u/Esakki_Selvaraj)\
**Post date:** [July 18, 2026, 6:39am UTC](https://community.nginx.org/t/nginx-upstream-certificate-validation/10164/1 "2026-07-18T06:39:44Z")

</div>

When trying to use certificate validation for nginx upstream using the below configs

```auto
    proxy_ssl_trusted_certificate /etc/nginx/trusted_ca_cert.crt;
    proxy_ssl_verify on;

```

There is a need to specify a specific certificate, it is possible to provide multiple certificates in here for validation, instead of a single certificate file in Windows nginx

---

<div class="post-metadata">

**Author:** ![FrancisD](https://avatars.discourse-cdn.com/v4/letter/f/ea5d25/32.png) [@FrancisD](https://community.nginx.org/u/FrancisD)\
**Post date:** [July 18, 2026, 8:16am UTC](https://community.nginx.org/t/nginx-upstream-certificate-validation/10164/2 "2026-07-18T08:16:16Z")

</div>

Hi there,

Untested by me, but the documentation for proxy\_ssl\_trusted\_certificate ([Module ngx\_http\_proxy\_module](http://nginx.org/r/proxy_ssl_trusted_certificate)) suggests that it must be a single file, but that the file can contain multiple certificates.

Does that work in your case?

The file would be the pem-encoded certificates between lines of

```
-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----

```

with maybe some free-form comments outside those lines.

Cheers,

---

<div class="post-metadata">

**Author:** ![Esakki\_Selvaraj](https://drob5swvtjqxg.cloudfront.net/user_avatar/community.nginx.org/esakki_selvaraj/32/4801_2.png) [@Esakki\_Selvaraj](https://community.nginx.org/u/Esakki_Selvaraj)\
**Post date:** [November 1, 2026, 8:29pm UTC](https://community.nginx.org/t/nginx-upstream-certificate-validation/10164/3 "2026-11-01T20:29:33Z")

</div>

Yes, handled this by combining all the certificates in pem file
