Blame SOURCES/update-ca-trust

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