I have the same issue during development in localhost. I had would like to test sending of email from my application used laravel smtp mailer. Finally the solution was that I added verify_peer and verify_peer_name fields with value false to smpt config in config/mail.php.
'mailers' => [
'smtp' => [
'transport' => 'smtp',
'host' => env('MAIL_HOST', 'smtp.gmail.com'),
'port' => env('MAIL_PORT', 465),
'encryption' => env('MAIL_ENCRYPTION', 'ssl'),
'username' => env('MAIL_USERNAME'),
'password' => env('MAIL_PASSWORD'),
'timeout' => null,
'local_domain' => env('MAIL_EHLO_DOMAIN'),
'verify_peer' => env('MAIL_VALIDATE_CERT', false),
'verify_peer_name' => env('MAIL_VALIDATE_CERT', false)
]
]