Browse Source

git cert script added

84582af
Dirk Alders 2 years ago
parent
commit
8eca043a62
1 changed files with 8 additions and 0 deletions
  1. 8
    0
      gitcert

+ 8
- 0
gitcert View File

1
+#!/bin/bash
2
+#
3
+if [[ $UID != 0 ]]; then
4
+    sudo $0
5
+else
6
+    cp /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt.orig-git
7
+    echo $(echo -n | openssl s_client -showcerts -connect mount-mockery.de:443 2>/dev/null  | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p') >> /etc/ssl/certs/ca-certificates.crt
8
+fi

Loading…
Cancel
Save