kimmoli

selfsigned ca in sailfish

Jun 25th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!

Installing root cert for sailfish browser

install nss-tools package

devel-su pkcon install nss-tools

Download yourcert.crt to your device (e.g. in /home/nemo/)

Add it to browser certificate store:

certutil -A -n "CAcert root" -t "TC,TC,TC" -d /home/nemo/.mozilla/mozembed/ -i /home/nemo/yourcert.crt

For other use

For other apps, CA needs to be added as trusted root.

Install openssl

devel-su pkcon install openssl

Go to certificate path and install it (again, assuming you have it on /home/nemo)

cd /etc/pki/tls/certs/
devel-su cp /home/nemo/yourcert.crt .
devel-su ln -s yourcert.crt $( openssl x509 -hash -noout -in yourcert.crt )".0"
Add Comment
Please, Sign In to add comment