diff options
author | Britney Fransen <brfransen@gmail.com> | 2015-09-21 13:38:23 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2015-09-21 13:38:23 (GMT) |
commit | a539e75c078ac28e99b25b257a0700caaae60770 (patch) | |
tree | ac0abf9714cfe95c9c1022d5bc575f46e60f74b7 /abs/core/ca-certificates/update-ca-trust | |
parent | ceb6d3594fbd672587a1f15618427be552654241 (diff) | |
download | linhes_pkgbuild-a539e75c078ac28e99b25b257a0700caaae60770.zip linhes_pkgbuild-a539e75c078ac28e99b25b257a0700caaae60770.tar.gz linhes_pkgbuild-a539e75c078ac28e99b25b257a0700caaae60770.tar.bz2 |
ca-certificates: update to 20150402
Diffstat (limited to 'abs/core/ca-certificates/update-ca-trust')
-rw-r--r-- | abs/core/ca-certificates/update-ca-trust | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/abs/core/ca-certificates/update-ca-trust b/abs/core/ca-certificates/update-ca-trust new file mode 100644 index 0000000..9a97e34 --- /dev/null +++ b/abs/core/ca-certificates/update-ca-trust @@ -0,0 +1,27 @@ +#!/bin/bash + +# At this time, while this script is trivial, we ignore any parameters given. +# However, for backwards compatibility reasons, future versions of this script must +# support the syntax "update-ca-trust extract" trigger the generation of output +# files in $DEST. + +DEST=/etc/ca-certificates/extracted + +# The directory-format extractors remove all files in the target directory, but not directories or files therein +trust extract --overwrite --format=pem-directory-hash --filter=ca-anchors --purpose server-auth $DEST/cadir +trust extract --overwrite --format=pem-bundle --filter=ca-anchors --purpose server-auth $DEST/tls-ca-bundle.pem +trust extract --overwrite --format=pem-bundle --filter=ca-anchors --purpose email $DEST/email-ca-bundle.pem +trust extract --overwrite --format=pem-bundle --filter=ca-anchors --purpose code-signing $DEST/objsign-ca-bundle.pem +trust extract --overwrite --format=openssl-bundle --filter=certificates $DEST/ca-bundle.trust.crt + +# We don't want to have to remove everything from the certs directory but neither +# do we want to leave stale certs around, so symlink it all from somewhere else +for f in $DEST/cadir/*; do + ln -fsr -t /etc/ssl/certs "$f" +done + +# Now find and remove all broken symlinks +find -L /etc/ssl/certs -maxdepth 1 -type l -delete + +# Java bundle +trust extract --overwrite --format=java-cacerts --filter=ca-anchors --purpose server-auth /etc/ssl/certs/java/cacerts |