Skip to content

Commit

Permalink
certificates in firefox are now an hook
Browse files Browse the repository at this point in the history
cert8.db was more similar to a binary than to a config file.
A simple chroot hook will populate it in a more reviewable way.
Also, it will "fetch" from freepto-certificates in a more natural way.
  • Loading branch information
boyska authored and vinc3nt committed Oct 19, 2014
1 parent db388e7 commit 6b31802
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
12 changes: 12 additions & 0 deletions config/hooks/certificates.chroot
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env bash

dir=$(find /etc/skel/.mozilla/firefox/*/ -maxdepth 0 -type d)
if [[ ! -d "$dir" ]]; then
echo "Not valid profiledir: $dir"
exit 1
fi
dpkg -L freepto-certificates | egrep '^/usr/share/ca-certificates/.*\.crt$' | while read crt; do
name=$(basename "$crt" .crt)
certutil -A -n "$name" -t TC,, -i "$crt" -d "$dir"
done

Binary file not shown.
3 changes: 3 additions & 0 deletions config/package-lists/tools.list.chroot
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,6 @@ spice-vdagent
# graphical tools
lshw-gtk
evince-gtk

# security
libnss3-tools

0 comments on commit 6b31802

Please sign in to comment.