...
This commit is contained in:
parent
f0bbe69224
commit
c7277d2406
2 changed files with 12 additions and 0 deletions
8
certs.sh
Executable file
8
certs.sh
Executable 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"
|
||||
|
|
@ -38,3 +38,7 @@
|
|||
|
||||
[init]
|
||||
defaultBranch = main
|
||||
[http]
|
||||
sslBackend = gnutls
|
||||
sslCAinfo = /etc/ssl/certs/ca-certificates.crt
|
||||
sslVerify = false
|
||||
|
|
Loading…
Reference in a new issue