Git LFS give x509: certificate signed by unknown authority

I just had that same issue while running git clone ... to download source code from a private Git repository in BitBucket into a Docker image. I solved it by disabling the SSL check like so:

GIT_SSL_NO_VERIFY=1 git clone ...

Notice that there is no && between the Environment arg and the git clone command.

You can also set that option using git config:

git config http.sslverify false

For my use case in building a Docker image it is easier to set the Env var.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)