summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2013-09-10 22:49:13 +0200
committerJan Pokorný <jpokorny@redhat.com>2013-09-10 22:50:55 +0200
commitd371b913dc17780dbfa9985bd22caaa01b05dda2 (patch)
treeae295ddd4a910086ce51f110f4504873c613e546 /scripts
parenta90a6f9c8b262ef9a0c702b986a8a3be29724f09 (diff)
downloaddotfiles-d371b913dc17780dbfa9985bd22caaa01b05dda2.tar.gz
dotfiles-d371b913dc17780dbfa9985bd22caaa01b05dda2.tar.xz
dotfiles-d371b913dc17780dbfa9985bd22caaa01b05dda2.zip
Cert management: export GIT_SSL_CAINFO=HOMEBUNDLE from .profile
As for cert scripts, add cert-def fallback defining HOMEBUNDLE location. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/certs/cert-check4
-rw-r--r--scripts/certs/cert-def1
2 files changed, 4 insertions, 1 deletions
diff --git a/scripts/certs/cert-check b/scripts/certs/cert-check
index a19e79c..3404ec0 100755
--- a/scripts/certs/cert-check
+++ b/scripts/certs/cert-check
@@ -17,8 +17,10 @@
# - remove unneeded subshells? ( '()' -> '{}' )
# - p7s: https://lists.fedoraproject.org/pipermail/devel/2013-February/178272.html
+: ${HOMEBUNDLE:=}
+[ -z ${HOMEBUNDLE} ] && source cert-def
+
CA_BUNDLE=/etc/pki/tls/certs/ca-bundle.crt
-HOMEBUNDLE=~/.pki/tls/certs/ca-bundle.crt
#WGET="wget -nv -U '' --ca-certificate <(cat "${CA_BUNDLE}" "${HOMEBUNDLE}")"
WGET="wget -nv -U ''"
diff --git a/scripts/certs/cert-def b/scripts/certs/cert-def
new file mode 100644
index 0000000..40b2092
--- /dev/null
+++ b/scripts/certs/cert-def
@@ -0,0 +1 @@
+HOMEBUNDLE=${HOME}/.pki/tls/certs/ca-bundle.crt