Today before the training session, when a mentor tried adding my website’s feed in dgplug planet, they told me there was an error, and they asked me to use the curl command on the website, so I did.
I had a valid SSL certificate from Lets Encrypt, and my website ran on all the major browsers. However, the curl command threw the following error.
curl: (60) SSL certificate problem: unable to get local issuer certificate More details here: https://curl.haxx.se/docs/sslcerts.html curl failed to verify the legitimacy of the server and therefore could not establish a secure connection to it. To learn more about this situation and how to fix it, please visit the web page mentioned above.
The training was about to start I was stuck with this new challenge. So I searched “WordPress: curl (60) SSL certificate problem”, and the results showed me a few old StackOverflow links. Then the training started, and I started feeling that my mind was doing multi-threading, one thread was thinking about solving this new issue, and another was attending the lecture. So although I was in the channel, I was not as attentive as usual. Finally, as the class finished, I jumped to read the answers and solve the issue.
In this StackOverflow thread, the answer of Enes Kirimi helped solve my issue. In his answer, Enes wrote, “These are your Intermediate and root certificates. The error occurs because they are missing the SSL certificate you’re supplying to your application.” This prompted me to check my certificate and upload the full chain of certificate, as I uploaded the end-user certificate earlier. And viola, as i updated the certificate, the error was no longer there. After checking the issue was solved, the mentor added my blog to the dpglug’s planet.
Earlier, when I used to write, I always wrote blogs hoping that someone might face a problem one day, which I have encountered and solved in the past, so they would read my blog it might benefit them. I never expected someone would read my blogs, but now, because of the planet, people will be reading my blog. I can not describe the feeling in words how grateful I am feeling today. So I think I will write about the emotion itself.