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