“Error: cURL error 60: SSL certificate problem: certificate has expired” when create product in WooCommerce via REST API

In the file /etc/ca-certificates.conf, you need to find the line:

mozilla / DST_Root_CA_X3.crt

and put the “!” symbol at the beginning of the dates:

! mozilla / DST_Root_CA_X3.crt

Next, you need to run the command:

sudo update-ca-certificates