Published 3 years ago by slim12kg
I just installed mandrill and tried sending a message using the Maill::Send function but i get the error ": cURL error 60: SSL certificate problem: unable to get local issuer certificate". I actually thought it was a problem with curl not on my windows, so i installed curl and a certificated, yet it persist. Any idea what might be the problem?
Just had a thought, I add Google for my DNS so it could be the default local blocking you from doing it.
sudo nano /etc/resolvconf/resolv.conf.d/base
Add in this
# Google nameserver 220.127.116.11 nameserver 18.104.22.168
Then to update the /etc/resolv.conf file, run this
sudo resolvconf -u
Make sure that you have "guzzlehttp/guzzle": "~4.0". It has to be THIS particular version. Can't be higher.
I installed mine using composer require guzzlehttp/guzzle and it installed version 5.2. Which cause it not to send emails. Correcting composer.json and running "composer update" fixed it straight away.
I had the exact same but on Windows & xampp. My solution was as simple as: Follow this link: http://curl.haxx.se/ca/cacert.pem Copy the entire page and save it in a: "cacert.pem"
Then in your php.ini file insert or edit the following line: curl.cainfo = "[pathtothisfile]\cacert.pem"
I don't know how you are using Guzzle or how it's called within your program but you could try the options below if you can access the Guzzle instance:
// disable cert verification $guzzle->setDefaultOption('verify', false); // use a cert $guzzle->setDefaultOption('verify', '/path/to/cacert.pem');
Where to store the cert? Well it doesn't really matter - maybe
I just spent a number of hours grappling with this. The correct answer is indeed to put the cacert.pem file and amend the php.ini file to match as suggested by Moez above. ..... but I kept on getting CURL error 60's The trick was getting a clean copy of the PEM file! Any method involving windows notepad or other editors corrupts the file and gives the cURL error 60 etc. Finally I found https://gist.github.com/VersatilityWerks/5719158/download and downloaded a tar file with a clean copy of the cacert.pem file ...... it then all worked perfectly.
Hope this saves others time.