How to clone a repo on a http web sever using git with certificates stored in a NSS database

Solution Verified - Updated -


  • Git is unable to find the nss database after creating database with the following command:
pk12util -i myCertificate.p12 -d sql:/home/myusername/.ssl -n nickname
  • This results in the following error:
Initializing NSS with certpath: sql:/etc/pki/nssdb
NSS error -8018
  • Setting NSS_DB_PATH does not seem to affect the path git searches for the nss database in however the environment variable SSL_DIR does.

  • Trying to use git to connect to a HTTPS server that requires PKI certificates for authentication.


  • Red Hat Enterprise Linux 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In