Ensure that private key is shredded when removing an onion service
This commit is contained in:
parent
52e0e2ddb9
commit
1de7d59b56
|
@ -69,6 +69,7 @@ function remove_onion_service {
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if [ -d /var/lib/tor/hidden_service_${onion_service_name} ]; then
|
if [ -d /var/lib/tor/hidden_service_${onion_service_name} ]; then
|
||||||
|
shred -zu /var/lib/tor/hidden_service_${onion_service_name}/*
|
||||||
rm -rf /var/lib/tor/hidden_service_${onion_service_name}
|
rm -rf /var/lib/tor/hidden_service_${onion_service_name}
|
||||||
fi
|
fi
|
||||||
systemctl restart tor
|
systemctl restart tor
|
||||||
|
|
Loading…
Reference in New Issue