Localhost issue: OpenSSL error:1416F086 #2682
-
Hi, I tried this with no success: https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting#certificate-verification-failure My local env (for development): If i do this, its working fine but this is only a bypass of the problem:
What could it be? Any help or piste would be really appreciated Debug log (over ssl):
Debug log (over tls):
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
So what happened when you downloaded a fresh CA certificate bundle and configured PHP to use it, as the troubleshooting guide describes? |
Beta Was this translation helpful? Give feedback.
-
I found out what was the problem. If you are using php as an apache module and using the Doing so, the default configuration (php.ini) file wasnt loaded (where i did put: openssl.cafile = /etc/ssl/cacert.pem, ...) SolutionPut this into 'index.php' on your vhosted site (where you are using PHPmailer): Then find the line: Loaded Configuration File |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
I found out what was the problem.
If you are using php as an apache module and using the
PHPINIDir
for your vhost, then you might face this problem aswell.Doing so, the default configuration (php.ini) file wasnt loaded (where i did put: openssl.cafile = /etc/ssl/cacert.pem, ...)
Solution
Put this into 'index.php' on your vhosted site (where you are using PHPmailer):
<?php echo phpinfo(); ?>
Then find the line: Loaded Configuration File
This is where you need to put the path of your CA bundle.