cURL error 60: SSL certificate problem: unable to get local issuer certificate
-
Enviroment
Laragon Full v. 4.0.14
SSL certificate enabled and correctly working.
Fresh installation of wordpress.Behaviour
When performing the "Site Health" process, Wordpress returns the following error:
cURL error 60: SSL certificate problem: unable to get local issuer certificateOn php.ini everything seems fine:
; A default value for the CURLOPT_CAINFO option. This is required to be an ; absolute path. curl.cainfo = "C:\laragon\etc\ssl\cacert.pem"
Never happened before on a localhost enviroment. Any idea?!
-
@lucagrandicelli : Can you update the
cacert.pem
? Here how:-
Download it:
https://curl.haxx.se/ca/cacert.pem -
Replace
C:\laragon\etc\ssl\cacert.pem
with it -
Restart Apache/Nginx
-
-
Already did that and the problem persists.
Also tried to move the pem certificate inside the apache/ssl folder and use the openssl.cafile directive, but with no luck.
Maybe something related to the CURL options and loopback (since we're ona local enviroment)?
-
Having the exact same issue!
-
Reached here searching for a solution for this.
-
Having the same issue after trying countless solutions. I tired to put the cacert.prem directly in the php folder as well:
C:\laragon\bin\php\php-7.3.5-Win32-VC15-x64\extras\ssl
Then updated in php.ini:
curl.cainfo ="C:\laragon\bin\php\php-7.3.5-Win32-VC15-x64\extras\ssl\cacert.pem"
openssl.cafile ="C:\laragon\bin\php\php-7.3.5-Win32-VC15-x64\extras\ssl\cacert.pem"Restarted and still same error. I did a curl command in CMD and it worked with no issue.
-
I had the same problem until i realized that I had two php.ini files, one global under
C:/php
and other in Laragon.
Be sure to edit the one inC:\laragon\bin\php\
-
Hi guys,
I am experiencing the same issue, tried all the options listed here and the issue remains the same.
so the problem still is how to make curl to find the "local ISSUER certificate"?Who is the local issuer and where should the cert be stored?
-
@123conecta Try this:
On the laragon window > Menu > Apache / Nginx > SSL > Add Laragon.crt to trust store.
This can fix some problems for certificates created in other machines
-
This post is deleted!
-
Has anyone got this working? I've tried all of the suggestions listed above and am still getting an error.
If I put the cacert.prem directly in the php folder as well:
C:\laragon\bin\php\php-7.3.5-Win32-VC15-x64\extras\ssl
Then updated in php.ini:
curl.cainfo ="C:\laragon\bin\php\php-7.3.5-Win32-VC15-x64\extras\ssl\cacert.pem"
openssl.cafile ="C:\laragon\bin\php\php-7.3.5-Win32-VC15-x64\extras\ssl\cacert.pem"...the error changes to:
cURL Error: error setting certificate verify locations: CAfile: C:\laragon\bin\php\php-7.3.5-Win32-VC15-x64\extras\ssl\cacert.pem CApath: none
-
This worked for me.
-
@primitive-mike said in cURL error 60: SSL certificate problem: unable to get local issuer certificate:
This worked for me.
It would help ALL if you specified WHAT worked for you!
Thanks
-
@KoolPal I replied to the comment that worked for me, not sure why it put the reply down here too.
-
@primitive-mike said in cURL error 60: SSL certificate problem: unable to get local issuer certificate:
@KoolPal I replied to the comment that worked for me, not sure why it put the reply down here too.
I guess that is because the post above your is deleted as seen in the screenshot?
Thanks anyways!
-
@KoolPal, idk man, it's doing the same thing to your replies. It puts the reply in line and then throws it in at the bottom too. Weird.