Search code examples
gitmacossslopensslmacos-monterey

facing error while trying to use git over HTTPS in MacOs Monterey. error:06FFF089:digital envelope routines:CRYPTO_internal:bad key length


I am trying the command "git pull" and facing the error. This started after the MacOS upgrade to Monterey. All my git commands fail with the below error.

fatal: unable to access 'https://bitbucket.myenterprise.com:1234/smc/csm/my-service.git/': error:06FFF089:digital envelope routines:CRYPTO_internal:bad key length

I have tried the solution provided at a similar post
Fixing git HTTPS Error: "bad key length" on macOS 12

However, it did not work for me.


Solution

  • This helped me to continue using HTTPS:

    export CURL_SSL_BACKEND="secure-transport"