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

Solution Verified - Updated -

Issue

  • 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.

Environment

  • Red Hat Enterprise Linux 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content