I'm experiencing some issues with my SSL setup on a client application. The application is served from Nginx on an AWS EC2 instance. I have an AWS load balancer in front of this server. My SSL cert is installed on the Load Balancer and all traffic is routed to Nginx on the relevant port.
If I navigate to one of the webpages served by Nginx I get an SSL Certificate error in my browser.
If I run the following OpenSSL command I get an error...
openssl s_client -debug -connect example.com:443
Verify return code: 21 (unable to verify the first certificate)
And if I check the domain on Digicert I get...
SSL Certificate is not trusted
I use the same type of setup for other projects (SSL on LB) and it works fine. Its only my Nginx instance that is giving me trouble. Is there some configuration I could be missing with Nginx?
Thanks!