trust-extract-compat 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. #!/bin/sh
  2. # This script is a placeholder designed to be replaced when this software
  3. # has been customized for distribution. It should be symlinked linked to the
  4. # distribution's update-ca-certificates or update-ca-trust command as
  5. # appropriate. In the future this script will be called when the PKCS#11
  6. # trust module is used to modify trust anchors and related data.
  7. if [ $# -ne 0 ]; then
  8. echo "usage: trust extract-compat" >&2
  9. exit 2
  10. fi
  11. uid=$(id -u)
  12. if [ "$uid" != 0 ]; then
  13. echo "trust: running as non-root user: skip extracting compat bundles" >&2
  14. exit 0
  15. fi
  16. echo "trust: the placeholder extract-compat command has not been customized by your distribution." >&2
  17. # You can use commands like this to extract data from trust modules
  18. # into appropriate locations for your distribution.
  19. #
  20. # trust extract --format=openssl-bundle --filter=ca-anchors \
  21. # --overwrite /tmp/openssl-bundle.pem
  22. # trust extract --format=pem-bundle --filter=ca-anchors --overwrite \
  23. # --purpose server-auth /tmp/server-auth-bundle.pem
  24. # trust extract --format=java-cacerts --filter=ca-anchors --overwrite \
  25. # --purpose server-auth /tmp/cacerts
  26. exit 1