Page tree

Welcome to FreeSoftwareServers Confluence Wiki

Skip to end of metadata
Go to start of metadata

https://superuser.com/questions/437330/how-do-you-add-a-certificate-authority-ca-to-ubuntu

cat << 'EOF' >~/crt_import.sh
#!/bin/bash

dirname=domain
crtname=domain_ca

apt-get update
apt-get install -y p11-kit libnss3
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
mkdir /usr/local/share/ca-certificates/$dirname
cat << EOL >/usr/local/share/ca-certificates/$dirname/$crtname.crt
----CERTHERE---
EOL
update-ca-certificates
EOF
chmod +x ~/crt_import.sh
~/crt_import.sh
  • No labels