Advertisement
s243a

pinstall.sh (arch_certs-1)

Mar 15th, 2020
605
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.04 KB | None | 0 0
  1. #!/bin/sh
  2. for a_pkg in ca-certificates-20181109- ca-certificates-mozilla ca-certificates-utils-20181109-; do
  3.   petget /var/tmp/$a_pkg*
  4. done
  5.  
  6. #See: http://murga-linux.com/puppy/viewtopic.php?p=1050071#1050071
  7. mv /etc/ca-certificates.conf /etc/ca-certificates.conf_back_$$
  8. ( cd /usr/share/ca-certificates
  9.  find . -name '*.crt' | sed 's#^./##' > /etc/ca-certificates.conf
  10. )
  11.  
  12. #The following command is from: https://github.com/rbarrois/nss-systemcerts/blob/master/nss-systemcerts-import#L21
  13. nss-systemcerts-import
  14.  
  15. #The following command is from: https://packages.debian.org/sid/all/ca-certificates
  16. update-ca-certificates
  17.  
  18. #See:
  19. # http://murga-linux.com/puppy/viewtopic.php?p=1050966#1050966
  20. # https://wiki.archlinux.org/index.php/User:Grawity/Adding_a_trusted_CA_certificate#System-wide_%25E2%2580%2593_update-ca-certificates_%28Debian%2C_Ubuntu%29
  21. update-ca-trust
  22.  
  23. for a_profile in /root/.cache/mozilla/firefox/*; do
  24.   mv $a_profile/pkcs11.txt $a_profile/pkcs11.txt_back$$ && \
  25.   cp /etc/pki/nssdb/pkcs11.txt $a_profile/pkcs11.txt
  26. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement