- 1 year ago
Restore certificates to fix curl error 60
Comment
1 / 1
To restore certificates on Windows to fix curl error 60, you can follow these steps:
- Download the latest cacert.pem file from https://curl.se/docs/caextract.html
- Open a Command Prompt as Administrator
- Type the following command:
certutil -generateSSTFromWU roots.sst
- Press Enter and wait for the command to complete
- Type the following command:
certutil -addstore -f root roots.sst
- Press Enter and wait for the command to complete
- Copy the downloaded cacert.pem file to the directory where the curl executable is located
- Rename the cacert.pem file to curl-ca-bundle.crt
- Test curl by running the following command:
curl https://www.google.com
These steps will restore the certificates on your system and allow curl to function properly.