Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

impbob36's avatar

error cURL error 60: SSL certificate problem: self signed certificate in certificate chain

I have 2 environments I use for testing, local & homestead. Local uses php artisan server and homestead is ... well ... homestead.

When using Socialite for authenticate I get the following error:

error cURL error 60: SSL certificate problem: self signed certificate in certificate chain

After researching, I updated my cacert.pem on my local PC but it still failed. Finally got the local environment working by extracting the Kaspersky certificate from Chrome and adding it the cacert.pem file.

So, how do I add / append the certificate to Homestead?

0 likes
2 replies
md's avatar

How did you extract it?

impbob36's avatar

Using Chrome v68 on Win10:

  1. Click on the 'padlock' section at the beginning of the URL
  2. Click 'certificate' in the popup
  3. Click the 'Details' tab in the new popup
  4. Click 'Copy to file' to open the Certificate Export Wizard, then 'next'
  5. Select 'base-64' type, then 'next'
  6. Select a filename using browse button and complete the Wizard.

You should then have a copy of it.

My company changed AV software so I cant give you a screenshot work-through.

After step 2, you may need to click 'Certificate path' tab and then view the Kaspersky certificate depending on your setup.

Please or to participate in this conversation.