stream_socket_enable_crypto(): SSL operation failed with code 1
After upgrading PHP to 5.6 or 7, every attempt to send an email via ads contact form fail and does not even is sent. ClassiPress shows a message saying that the email was successfully sent and shows the following error message:
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
/xpto/xpto/xpto/public_html/wp-includes/class-smtp.php on line
343