bundle.sh 622 B

1234567891011121314151617181920212223
  1. #!/bin/sh
  2. # From Fedora's ca-certificates.spec
  3. (
  4. cat <<EOF
  5. # This is a bundle of X.509 certificates of public Certificate
  6. # Authorities. It was generated from the Mozilla root CA list.
  7. # These certificates and trust/distrust attributes use the file format accepted
  8. # by the p11-kit-trust module.
  9. #
  10. # Source: nss/lib/ckfw/builtins/certdata.txt
  11. # Source: nss/lib/ckfw/builtins/nssckbi.h
  12. #
  13. # Generated from:
  14. EOF
  15. cat certs/nssckbi.h | grep -w NSS_BUILTINS_LIBRARY_VERSION | awk '{print "# " $2 " " $3}'
  16. echo '#'
  17. ) > ca-bundle.trust.p11-kit
  18. for p in certs/*.tmp-p11-kit; do
  19. cat "$p" >> ca-bundle.trust.p11-kit
  20. done