2013-03-08 23:09:26 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
#set -vx
|
|
|
|
|
2013-07-08 22:59:15 +00:00
|
|
|
# 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.
|
|
|
|
|
2013-03-08 23:09:26 +00:00
|
|
|
DEST=/etc/pki/ca-trust/extracted
|
|
|
|
|
2017-08-15 13:39:45 +00:00
|
|
|
# Prevent p11-kit from reading user configuration files.
|
|
|
|
export P11_KIT_NO_USER_CONFIG=1
|
|
|
|
|
2013-03-08 23:09:26 +00:00
|
|
|
# OpenSSL PEM bundle that includes trust flags
|
|
|
|
# (BEGIN TRUSTED CERTIFICATE)
|
2017-02-13 20:04:08 +00:00
|
|
|
/usr/bin/p11-kit extract --format=openssl-bundle --filter=certificates --overwrite --comment $DEST/openssl/ca-bundle.trust.crt
|
|
|
|
/usr/bin/p11-kit extract --format=pem-bundle --filter=ca-anchors --overwrite --comment --purpose server-auth $DEST/pem/tls-ca-bundle.pem
|
|
|
|
/usr/bin/p11-kit extract --format=pem-bundle --filter=ca-anchors --overwrite --comment --purpose email $DEST/pem/email-ca-bundle.pem
|
|
|
|
/usr/bin/p11-kit extract --format=pem-bundle --filter=ca-anchors --overwrite --comment --purpose code-signing $DEST/pem/objsign-ca-bundle.pem
|
2013-03-08 23:09:26 +00:00
|
|
|
/usr/bin/p11-kit extract --format=java-cacerts --filter=ca-anchors --overwrite --purpose server-auth $DEST/java/cacerts
|
2018-06-11 11:57:17 +00:00
|
|
|
/usr/bin/p11-kit extract --format=edk2-cacerts --filter=ca-anchors --overwrite --purpose=server-auth $DEST/edk2/cacerts.bin
|