Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.
Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
User avatar
By programerboy
#814076
Hi,

I set email setting with phpmailer and smtp.gmail.com server and 587 port with tls.
it's test is ok but when I checked send test mail I get this error:

Warning: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in C:\Bitnami\processmaker-3.2.1-0\apps\processmaker\htdocs\gulliver\thirdparty\phpmailer\class.smtp.php on line 248

My server is windows server 2012 R2.

Please help me.
Thanks
User avatar
By amosbatto
#814096
I have never seen this problem before where the PM server can't find the SSL certificate.
Looking at this bug report:
https://github.com/composer/composer/issues/3346

I created a trigger in a ProcessMaker process with this code:
Code: Select all
print "<pre>"; 
var_dump(openssl_get_cert_locations()); 
die;
It returns this info on my machine:
Code: Select all
array(8) {
  ["default_cert_file"]=>
  string(21) "/usr/lib/ssl/cert.pem"
  ["default_cert_file_env"]=>
  string(13) "SSL_CERT_FILE"
  ["default_cert_dir"]=>
  string(18) "/usr/lib/ssl/certs"
  ["default_cert_dir_env"]=>
  string(12) "SSL_CERT_DIR"
  ["default_private_dir"]=>
  string(20) "/usr/lib/ssl/private"
  ["default_default_cert_area"]=>
  string(12) "/usr/lib/ssl"
  ["ini_cafile"]=>
  string(0) ""
  ["ini_capath"]=>
  string(0) ""
}
When I check the contents of the /usr/lib/ssl/certs directory, I can see the .pem file for my email provider that I configured under Admin > Settings > Email Servers. What do you see on your server?

Experience heightened pleasure with Cenforce 100 M[…]

Get an instant solution to move emails to MBOX for[…]

Most Demanding OST to PST Converter

The most demanding OST to PST Converter is TrijaT[…]

Betvisa clone scripts are pre-built software solut[…]