Unable to verify the first certificate error nginx ssl

Hey,
I created a new website in my dashboard for ssl certificates. Then changed the nameservers for Cloudflare. Everything is ok. Then I changed the SSL mode to Full (Strict). Then I create a new Origin Certificate and copy pasted to my server path ‘/etc/nginx/ssl/’. The original certificate name is ‘mysite-cert.pem’ and the private key certificate name is ‘mysite-key.pem’. After that I changed my nginx.conf file to:
server {
listen 80;
listen 443 ssl;
ssl on;
ssl_certificate /etc/nginx/ssl/mysite-cert.pem;
ssl_certificate_key /etc/nginx/ssl/mysite-key.pem;

}
Then reload the nginx but can’t reach the https url of my website. I can reach easily to http url.
website is : http:///
you can also check the https url.

When I tried to send request from postman it gives me this error : SSL Error: Unable to verify the first certificate.

I can’t send requests to this url :confused:

Waiting for responses. Thanks.

That hostname is not :orange: Proxied by Cloudflare. Origin certs are only valid on proxied hostnames.

1 Like

Oh, thanks. I solved with your help :slight_smile:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.