nginx invalid number of arguments in "ssl_trusted_certificate"

I am going through part 4 of the Getting Started with NGINX at For "OCSP Stapling", I added:

ssl_stapling on;
ssl_stapling_verify on;
ssl_trusted_certificate /etc/letsencrypt/live/MYDOMAIN.COM/chain.pem

(According to some other websites, I should be pointing ssl_trusted_certificate to the location of chain.pem if I had obtained my SSL certificates from LetsEncrypt.)

I tested my nginx configuration with:

nginx -t

And I got the error:

nginx: [emerg] invalid number of arguments in "ssl_trusted_certificate" directive in /etc/nginx/nginx.conf

I don't know what argument is missing. According to the documentation, the only argument is the filepath to the chain.pem file.

Any ideas how to resolve this?

1 Reply

Ugh!! Nevermind. I was missing the trailing semicolon!! Dang! It's fine now.


Please enter an answer

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct