-
-
Notifications
You must be signed in to change notification settings - Fork 369
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error: Error in SSL_CTX use_certificate_chain_file crypto error:8000000D:system library::Permission denied #1206
Comments
Hi there, it seems you are modifying a system configured Unbound (which comes with its own systemctl scripts and apparmor profile). I cannot help you with the apparmor side of things, but turning it off to see if that would solve the permission errors would be my first action. If you only care about the remote control working, this is enabled by default in the debian system Unbound as you can see in |
Hi there! Yes, I modified apparmor profile to explicitly allow reading files I had problems with
The fact I modified it is the reason I attached it. |
It makes sense to have permissions errors before the modifications because access to those files is explicitly denied in the default configuration AFAICS. I don't have any experience with apparmor to identify the issue but try to disable apparmor for Unbound completely and see if it solves the permission problem. If that is the case, you can then focus on finetuning the profile. |
I had to add net_admin and dac_read_search. Now it works. |
Thanks for reporting back. However I believe in your case
|
Describe the bug
The remote-control feature fails to start due to permission errors accessing the .pem files. The logs show repeated “Permission denied” errors when loading the certificate chain file, causing Unbound to fail initialization.
Steps to reproduce the behavior:
sudo -u unbound unbound-control-setup
sudo systemctl restart unbound
Expected behavior
Unbound should start successfully and allow remote-control commands without permission errors.
System:
unbound -V
output:Additional information
Permissions
Config
Unit
/etc/apparmor.d/usr.sbin.unbound
The text was updated successfully, but these errors were encountered: