🔠Want to get alerted when your SSL certificate doesn't work?
Go to Better Stack and start monitoring in 5 minutes.
Received SSL certificate problem: unable to get local issuer certificate error
when executing curl
request to a secure HTTPS destination.
Go to Better Stack and start monitoring in 5 minutes.
If you get SSL certificate problem: unable to get local issuer certificate error, it's an indication that your root and intermediate certificates on the system are not working correctly or not set up correctly.
cacert.pem
from https://curl.haxx.se/ca/cacert.pem--cacert /path/to/cacert.pem
flag to the curl command to tell curl
where the local Certificate Authority file is.If you are using PHP:
Add the following line to the php.ini file or users.ini if you are on the shared hosting:
curl.cainfo="/path/to/downloaded/cacert.pem"
This depends purely on what type of certificate you have. You can have a standard single domain certificate. Aside from that, you can also get two following types of certificates.
Unfortunately, this is not possible. You cannot generate a private key out of an existing certificate. If it would be possible, you would be able to impersonate virtually any HTTPS webserver.
The usual cause is that the implementation of SSL on your server is not correct. The error is usually caused by a server-side problem which the server administrator will need to investigate.
Error 526 indicates Cloudflare is unable to successfully validate the SSL certificate on the origin web server and the SSL setting in the Cloudflare SSL/TLS app is set to Full SSL (Strict) for the website.
Are you a developer and love writing and sharing your knowledge with the world? Join our guest writing program and get paid for writing amazing technical guides. We'll get them to the right readers that will appreciate them.
Write for usWrite a script, app or project on top of Better Stack and share it with the world. Make a public repository and share it with us at our email.
community@betterstack.comor submit a pull request and help us build better products for everyone.
See the full list of amazing projects on github