mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-10 13:44:37 +08:00
19 lines
1.0 KiB
Bash
19 lines
1.0 KiB
Bash
#!/bin/sh
|
|
|
|
#set -vx
|
|
|
|
# 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
|
|
|
|
# OpenSSL PEM bundle that includes trust flags
|
|
# (BEGIN TRUSTED CERTIFICATE)
|
|
/usr/bin/p11-kit extract --format=openssl-bundle --filter=certificates --overwrite --comment $DEST/ca-bundle.trust.crt
|
|
/usr/bin/p11-kit extract --format=pem-bundle --filter=ca-anchors --overwrite --comment --purpose server-auth $DEST/tls-ca-bundle.pem
|
|
/usr/bin/p11-kit extract --format=pem-bundle --filter=ca-anchors --overwrite --comment --purpose email $DEST/email-ca-bundle.pem
|
|
/usr/bin/p11-kit extract --format=pem-bundle --filter=ca-anchors --overwrite --comment --purpose code-signing $DEST/objsign-ca-bundle.pem
|
|
/usr/bin/p11-kit extract --format=java-cacerts --filter=ca-anchors --overwrite --purpose server-auth /etc/ssl/certs/java/cacerts
|