Configure Self-signed Server Certificate in git bash for a Particular HTTPS Remote.

openssl pkcs12 -in privateKey.p12 -nodes -out privateKey.key -nocerts
openssl pkcs12 -in privateKey.p12 -clcerts -nokeys -out privateKey.crt
git config --edit --global
http.<YOUR_REPO_URL>.sslcert=<FILEPATH>/privateKey.crt
http.<YOUR_REPO_URL>.sslkey=/<FILEPATH>/privateKey.key
http.<YOUR_REPO_URL>.sslcainfo=/<FILEPATH>/rootCA.pem

--

--

--

Poet, Dreamer, Founder, Educator, Software Engineer, Project Manager & Trainer

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

【C#】Behavioral Patterns State Mode

Sign in Apple id

Why and how I built my blog

Creation of Wordpress & and secured Mysql database using Terraform

BASIC ACRHITECTURE OF THIS PROJECT

DigiU News for October 2020

Hacking Spring Initializr

Intro to CSS

Git & Github and the beauty of collaboration

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Sharjeel Nisar

Sharjeel Nisar

Poet, Dreamer, Founder, Educator, Software Engineer, Project Manager & Trainer

More from Medium

Git and GitHub (Part-2)

Install darktable 3.8.1 on Ubuntu / OpenSUSE / Fedora & AlmaLinux

How To Enforce Conventional Commit Messages Using GIT Hooks

Series One: Git Essential Training: The Basics