From c7277d2406d97bdaf6f99653176c78a5a5595acf Mon Sep 17 00:00:00 2001 From: Andrey Parhomenko Date: Thu, 2 Jan 2025 17:27:10 +0500 Subject: [PATCH] ... --- certs.sh | 8 ++++++++ dot/file/gitconfig | 4 ++++ 2 files changed, 12 insertions(+) create mode 100755 certs.sh diff --git a/certs.sh b/certs.sh new file mode 100755 index 0000000..eb8e63d --- /dev/null +++ b/certs.sh @@ -0,0 +1,8 @@ +hostname=XXX +port=443 +trust_cert_file_location=`curl-config --ca` + +sudo bash -c "echo -n | openssl s_client -showcerts -connect $hostname:$port -servername $hostname \ + 2>/dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' \ + >> $trust_cert_file_location" + diff --git a/dot/file/gitconfig b/dot/file/gitconfig index 7c91473..af38be5 100644 --- a/dot/file/gitconfig +++ b/dot/file/gitconfig @@ -38,3 +38,7 @@ [init] defaultBranch = main +[http] + sslBackend = gnutls + sslCAinfo = /etc/ssl/certs/ca-certificates.crt + sslVerify = false