diff options
author | Jan Pokorný <jpokorny@redhat.com> | 2013-09-10 22:49:13 +0200 |
---|---|---|
committer | Jan Pokorný <jpokorny@redhat.com> | 2013-09-10 22:50:55 +0200 |
commit | d371b913dc17780dbfa9985bd22caaa01b05dda2 (patch) | |
tree | ae295ddd4a910086ce51f110f4504873c613e546 | |
parent | a90a6f9c8b262ef9a0c702b986a8a3be29724f09 (diff) | |
download | dotfiles-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>
-rw-r--r-- | .profile | 3 | ||||
-rwxr-xr-x | scripts/certs/cert-check | 4 | ||||
-rw-r--r-- | scripts/certs/cert-def | 1 |
3 files changed, 7 insertions, 1 deletions
@@ -4,3 +4,6 @@ export EDITOR="vim" export LESS="-FRXS" export PAGER="less" export LESSOPEN="||${HOME}/.local/bin/lesspipe-highlight.sh %s" +export HOMEBUNDLE=${HOME}/.pki/tls/certs/ca-bundle.crt +export GIT_SSL_CAINFO="${HOMEBUNDLE}" +export _LOCAL_PROFILE=1 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 |