update-ca-trust 1.1 KB

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