'Solr HTTP error: HTTP request failed, SSL certificate problem: unable to get local issuer certificate

Recently, my certificates on production server expired. So, I changed them with new ones. Since then, I have the error below with Solr Solarium and I don't find any solutions. Many topics explain to install the cacert.pem file (and a lot with wamp or xampp). Installing this file create an other error "Json response can't be decoded".

Uncaught PHP Exception Solarium\Exception\HttpException: "Solr HTTP error: HTTP request failed, SSL certificate problem: unable to get local issuer certificate" at

Everything worked well before the expiration.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source