Skip to content

Instantly share code, notes, and snippets.

@wheelerlaw
Last active May 18, 2018 00:35
Show Gist options
  • Save wheelerlaw/5907719a8e6dca27547039329efb33c2 to your computer and use it in GitHub Desktop.
Save wheelerlaw/5907719a8e6dca27547039329efb33c2 to your computer and use it in GitHub Desktop.
Allow NSS applications to read the system certificate store
#!/usr/bin/env bash
find / -type f -name "libnssckbi.so" 2>/dev/null | while read line; do
sudo mv $line ${line}.bak
sudo ln -s /usr/lib/x86_64-linux-gnu/pkcs11/p11-kit-trust.so $line
done
sudo mount --bind -o nodev,ro /etc/ssl/certs /snap/core/current/etc/ssl/certs/
sudo mount --bind -o nodev,ro /usr/lib/x86_64-linux-gnu/pkcs11/p11-kit-trust.so /snap/firefox/85/libnssckbi.so
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment