Blame SOURCES/update-ca-trust

d77b68
#!/bin/sh
d77b68
d77b68
#set -vx
d77b68
d77b68
# At this time, while this script is trivial, we ignore any parameters given.
d77b68
# However, for backwards compatibility reasons, future versions of this script must 
d77b68
# support the syntax "update-ca-trust extract" trigger the generation of output 
d77b68
# files in $DEST.
d77b68
d77b68
DEST=/etc/pki/ca-trust/extracted
d77b68
d77b68
# OpenSSL PEM bundle that includes trust flags
d77b68
# (BEGIN TRUSTED CERTIFICATE)
d77b68
/usr/bin/p11-kit extract --comment --format=openssl-bundle --filter=certificates --overwrite $DEST/openssl/ca-bundle.trust.crt
d77b68
/usr/bin/p11-kit extract --comment --format=pem-bundle --filter=ca-anchors --overwrite --purpose server-auth $DEST/pem/tls-ca-bundle.pem
d77b68
/usr/bin/p11-kit extract --comment --format=pem-bundle --filter=ca-anchors --overwrite --purpose email $DEST/pem/email-ca-bundle.pem
d77b68
/usr/bin/p11-kit extract --comment --format=pem-bundle --filter=ca-anchors --overwrite --purpose code-signing $DEST/pem/objsign-ca-bundle.pem
d77b68
/usr/bin/p11-kit extract --format=java-cacerts --filter=ca-anchors --overwrite --purpose server-auth $DEST/java/cacerts