{"action":"created","issue":{"url":"https://api.github.com/repos/invoiceninja/invoiceninja/issues/643","repository_url":"https://api.github.com/repos/invoiceninja/invoiceninja","labels_url":"https://api.github.com/repos/invoiceninja/invoiceninja/issues/643/labels{/name}","comments_url":"https://api.github.com/repos/invoiceninja/invoiceninja/issues/643/comments","events_url":"https://api.github.com/repos/invoiceninja/invoiceninja/issues/643/events","html_url":"https://github.com/invoiceninja/invoiceninja/issues/643","id":128248642,"number":643,"title":"Certificate verification fails on sending user invitation.","user":{"login":"blazejpawlak","id":228705,"avatar_url":"https://avatars.githubusercontent.com/u/228705?v=3","gravatar_id":"","url":"https://api.github.com/users/blazejpawlak","html_url":"https://github.com/blazejpawlak","followers_url":"https://api.github.com/users/blazejpawlak/followers","following_url":"https://api.github.com/users/blazejpawlak/following{/other_user}","gists_url":"https://api.github.com/users/blazejpawlak/gists{/gist_id}","starred_url":"https://api.github.com/users/blazejpawlak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blazejpawlak/subscriptions","organizations_url":"https://api.github.com/users/blazejpawlak/orgs","repos_url":"https://api.github.com/users/blazejpawlak/repos","events_url":"https://api.github.com/users/blazejpawlak/events{/privacy}","received_events_url":"https://api.github.com/users/blazejpawlak/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-22T21:20:10Z","updated_at":"2016-05-10T09:52:28Z","closed_at":"2016-05-10T09:52:28Z","body":"Hey,\r\n\r\nThe system settings are configured to use a SMTP driver with a mail.messagingengine.com host on port 587, using TLS and user name + password authentication.\r\nSending test emails work just fine.\r\nBut when I create a new user and an invite is sent (or the invitation is resent again) the “laravel.log” file is propagated with the following error:\r\n\r\n```\r\n[2016-01-22 21:03:37] production.ERROR: Email Error: fopen(): SSL operation failed with code 1. OpenSSL Error messages:\r\nerror:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed\r\n```\r\n\r\nAny ideas which certificate verification is failing?\r\n\r\nI’ve got my `capath` and `cacert` configured with php.ini to match Ubuntu’s SSL ca-certificates.crt path:\r\n```\r\nphp -r \"print_r(openssl_get_cert_locations());\"\r\nArray\r\n(\r\n    [default_cert_file] => /usr/lib/ssl/cert.pem\r\n    [default_cert_file_env] => SSL_CERT_FILE\r\n    [default_cert_dir] => /usr/lib/ssl/certs\r\n    [default_cert_dir_env] => SSL_CERT_DIR\r\n    [default_private_dir] => /usr/lib/ssl/private\r\n    [default_default_cert_area] => /usr/lib/ssl\r\n    [ini_cafile] => /etc/ssl/certs/ca-certificates.crt\r\n    [ini_capath] => /etc/ssl/certs/\r\n)\r\n```\r\n\r\nI’m out of ideas here. Any inspiration for debugging this issue is more than welcome. Thanks!"},"comment":{"url":"https://api.github.com/repos/invoiceninja/invoiceninja/issues/comments/218111034","html_url":"https://github.com/invoiceninja/invoiceninja/issues/643#issuecomment-218111034","issue_url":"https://api.github.com/repos/invoiceninja/invoiceninja/issues/643","id":218111034,"user":{"login":"hillelcoren","id":4629496,"avatar_url":"https://avatars.githubusercontent.com/u/4629496?v=3","gravatar_id":"","url":"https://api.github.com/users/hillelcoren","html_url":"https://github.com/hillelcoren","followers_url":"https://api.github.com/users/hillelcoren/followers","following_url":"https://api.github.com/users/hillelcoren/following{/other_user}","gists_url":"https://api.github.com/users/hillelcoren/gists{/gist_id}","starred_url":"https://api.github.com/users/hillelcoren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hillelcoren/subscriptions","organizations_url":"https://api.github.com/users/hillelcoren/orgs","repos_url":"https://api.github.com/users/hillelcoren/repos","events_url":"https://api.github.com/users/hillelcoren/events{/privacy}","received_events_url":"https://api.github.com/users/hillelcoren/received_events","type":"User","site_admin":false},"created_at":"2016-05-10T09:52:28Z","updated_at":"2016-05-10T09:52:28Z","body":"I don't believe there's anything we can change in the app to fix this. "}}