Certificate Verify Failed

I’m getting the following error when trying to email invoices:

fopen(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

I’ve seen messages you’ve left in the forums referencing solutions to this problem, but I can’t for the life of me find any actual solutions. Can you please point me in the right direction?

I’d suggest testing with a different email account, otherwise you can consider disabling these checks:

http://php.net/manual/en/context.ssl.php

Forgive my ignorance-- I’m not that familiar with php. I can see that I would use the verify_peer FALSE context, but I don’t know where to do that.

I believe they can be set in the php.ini config file

My solution, for those who also run in to this problem, was fairly straight forward. In the end I didn’t have to modify my php config at all.

I used the tool at this website to see that my ssl cert chain was incomplete.

I’m using nginx, so all I really had to do was concatenate my CA root certificate to the end of my cert file. An embarassingly nooby mistake…

Thanks for sharing the fix!