SSL certificate problem: unable to get local issuer certificate.
unable to get local issuer certificate openssl is one of the issue you may face when using
localhost server application such as
wamp or xampp.
unable to get local issuer certificate openssl usually happens when you have not installed this certificate on your localhost, php.in files either on wamp, xampp or any other
localhost software you are using to run php scripts or website. in my own case i was experiencing this error while using wordpress via wamp server. the error i got from the plugin i was
trying to use is "SSL certificate problem: unable to get local issuer certificate". i thought the issue is from the plugin , not knowing that it is from my wamp server.
i had to do some digging to get solutions and after series of error and trial, i finally got it to work after installing certificate on the root of the wamp server. when i mean the root, i don't
mean the www directory. i mean the root folder of wamp which is
C:\wamp64. in my case, i am using wamp64, so if you are using wamp 32 bit and your root directory is
C:\wamp , then you have
to paste the certificate file there. so no need to change to 64 bit.
if you are having this issue, below is the process i followed to get it done.
You May Like To Read
http://www.gurubest.com/2017/06/wamp-phpmyadmin-access-denied-1045.html
How To Fix unable to get local issuer certificate openssl
whether the issue is SSL certificate problem: unable to get local issuer certificate for xamp or wamp, just follow the process to get it fixed.
==> download the certificate file via link below
https://curl.haxx.se/docs/caextract.html
==> after downloading, copy and paste it inside the C:\wamp64 or C:\wamp directory depending on the version of wamp server you are using.
==> now click on wamp server on your window trays and point your mouse to the option
PHP=>php.in ,
clicking php.in will pop up the file for you to edit. you can use notepad or better still notepad++. in my case i used notepad++
so once it is opened, search for the word
"curl.cainfo", it will take you to the word
curl.cainfo =
now add the line of code below after the equals to Sign. it becomes
curl.cainfo ="C:\wamp64/cacert.pem"
make sure you take note of your version of wamp, mine is wamp64, so if you are using wamp 32 , yours will be
curl.cainfo ="C:\wamp/cacert.pem"
also make sure you take note of the quotation mark which has to be there.
also take note of the semi colunm close to the start of the word Curl. just remove that semi colunm.
for example the word
;curl.cainfo ="C:\wamp64/cacert.pem"
replace with
curl.cainfo ="C:\wamp64/cacert.pem"
once you are done with curl, you have to do same for
openssl.cafile. so search for the word
"openssl.cafile"
it will take you to the word. just add this line of code after the equals to sign
"C:\wamp64/cacert.pem"
it becomes
openssl.cafile="C:\wamp64/cacert.pem"
don't also forget to take note of your wamp server version so you can insert the proper directory.
also don't forget to remove the semi colunm before the openssl
for example
;openssl.cafile="C:\wamp64/cacert.pem"
to
openssl.cafile="C:\wamp64/cacert.pem"
if you don't remove the semi colunm, it won't work. so remove it and then save the file.
this should
fix the issue of unable to get local issuer certificate openssl.
so if you have been experiencing this problem of SSL certificate problem: unable to get local issuer certificate, just follow the process and it should fix it.
visit
www.gurubest.com to view the latest post update you are not seeing right now.
more articles update is posted on
gurubest every day,so don't be the last to get update to your email.
Subscribe by email
DON'T FORGET TO SHARE WITH YOUR FRIENDS ON FACEBOOK BY CLICKING THE SHARE BUTTON.
No Responses to "SSL certificate problem: unable to get local issuer certificate Solution"
Post a Comment