Answers for "stream_socket_enable_crypto(): ssl operation failed with code 1. openssl error messages: error:1416f086:ssl routines:tls_process_server_certificate:certificate verify failed"

0

stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages:\nerror:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed

config/mail.php

'mailers' => [
    'smtp' => [
        'transport' => 'smtp',
        'host' => env('MAIL_HOST', 'smtp.mailgun.org'),
        'port' => env('MAIL_PORT', 587),
        'encryption' => env('MAIL_ENCRYPTION', 'tls'),
        'username' => env('MAIL_USERNAME'),
        'password' => env('MAIL_PASSWORD'),
        'timeout' => null,
        'stream' => [
            'ssl' => [
                'allow_self_signed' => true,
                'verify_peer' => false,
                'verify_peer_name' => false,
            ],
        ],
    ],
],
Posted by: Guest on June-14-2021
0

stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed

//In .env file:
MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
[email protected]
MAIL_PASSWORD=password
MAIL_ENCRYPTION=tls
[email protected]
MAIL_FROM_NAME=YourAppName
  
//In config/mail.php, in the 'mailers' field:
'smtp' => [
	'transport' => 'smtp',
	'host' => env('MAIL_HOST', 'smtp.mailgun.org'),
	'port' => env('MAIL_PORT', 587),
	'encryption' => env('MAIL_ENCRYPTION', 'tls'),
	'username' => env('MAIL_USERNAME'),
	'password' => env('MAIL_PASSWORD'),
	'timeout' => null,
	'stream' => [
		'ssl' => [
        	'allow_self_signed' => true,
        	'verify_peer' => false,
        	'verify_peer_name' => false,
		],
	],
],

//In console, REMEMBER TO CLEAR CACHE:
php artisan config:clear
Posted by: Guest on August-05-2021
0

stream_socket_enable_crypto(): ssl operation failed with code 1. openssl error messages: error:1416f086:ssl routines:tls_process_server_certificate:certificate verify failed

Try changing the app/config/email.php
smtp to mail
Posted by: Guest on April-08-2021
0

stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages:\nerror:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed

config/mail.php

'mailers' => [
    'smtp' => [
        'transport' => 'smtp',
        'host' => env('MAIL_HOST', 'smtp.mailgun.org'),
        'port' => env('MAIL_PORT', 587),
        'encryption' => env('MAIL_ENCRYPTION', 'tls'),
        'username' => env('MAIL_USERNAME'),
        'password' => env('MAIL_PASSWORD'),
        'timeout' => null,
        'stream' => [
            'ssl' => [
                'allow_self_signed' => true,
                'verify_peer' => false,
                'verify_peer_name' => false,
            ],
        ],
    ],
],
Posted by: Guest on June-14-2021
0

stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed

//In .env file:
MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
[email protected]
MAIL_PASSWORD=password
MAIL_ENCRYPTION=tls
[email protected]
MAIL_FROM_NAME=YourAppName
  
//In config/mail.php, in the 'mailers' field:
'smtp' => [
	'transport' => 'smtp',
	'host' => env('MAIL_HOST', 'smtp.mailgun.org'),
	'port' => env('MAIL_PORT', 587),
	'encryption' => env('MAIL_ENCRYPTION', 'tls'),
	'username' => env('MAIL_USERNAME'),
	'password' => env('MAIL_PASSWORD'),
	'timeout' => null,
	'stream' => [
		'ssl' => [
        	'allow_self_signed' => true,
        	'verify_peer' => false,
        	'verify_peer_name' => false,
		],
	],
],

//In console, REMEMBER TO CLEAR CACHE:
php artisan config:clear
Posted by: Guest on August-05-2021
0

stream_socket_enable_crypto(): ssl operation failed with code 1. openssl error messages: error:1416f086:ssl routines:tls_process_server_certificate:certificate verify failed

Try changing the app/config/email.php
smtp to mail
Posted by: Guest on April-08-2021

Code answers related to "stream_socket_enable_crypto(): ssl operation failed with code 1. openssl error messages: error:1416f086:ssl routines:tls_process_server_certificate:certificate verify failed"

Browse Popular Code Answers by Language