This commit is contained in:
Andrey Parhomenko 2025-01-02 17:27:10 +05:00
parent f0bbe69224
commit c7277d2406
2 changed files with 12 additions and 0 deletions

8
certs.sh Executable file
View file

@ -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"

View file

@ -38,3 +38,7 @@
[init]
defaultBranch = main
[http]
sslBackend = gnutls
sslCAinfo = /etc/ssl/certs/ca-certificates.crt
sslVerify = false