Applying a bypass
You can try a bypass, that is, disable the verification of ssl in the settings or at runtime.
Globally modifies via command line
git config http.sslVerify false
Modifies at runtime, i.e., only for the current session
env GIT_SSL_NO_VERIFY=true git clone https://git.....
Be aware that there are security implications when disabling verification. Use this feature only when unavoidable.
Another coarse way is in the git settings file, remove the line
[http]
sslCAinfo = /local/do/cert/curl-ca-bundle.crt
Setting up a valid certificate (cacert.pem)
However, it is correct to set up a valid certificate.
To do this, download cacert.pem:
curl http://curl.haxx.se/ca/cacert.pem -o /local/onde/quer/salvar/cacert.pem
Then edit the git settings file
[http]
sslCAinfo = /local/onde/salvou/o/cacert.pem
Tip: Another way to edit settings per command line:
git config --global http.sslCAinfo "/local/onde/salvou/o/cacert.pem"
Do you really need to (really need) clone? It’s so easy to install certbot using the distribution repository...
– ShutUpMagda