Skip to content
Advertisement

old php container says : curl: (60) SSL certificate problem: certificate has expired

Since 1 or 2 days my old php container (dockerhub php:5.4-apache) can’t use curl anymore. this is the log when running curl inside this container.

JavaScript

This same call works on a modern (updated) OS.

Advertisement

Answer

the reason is cacerts of the os are outdated

To update them you need to do the following

JavaScript

other option :

JavaScript

best option (imho) :

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement