OPNsense Forum

Archive => 17.7 Legacy Series => Topic started by: bobbis on October 17, 2017, 12:02:01 am

Title: [SOLVED] unbound-control system library:fopen:No such file or directory
Post by: bobbis on October 17, 2017, 12:02:01 am
whats wrong with unbound-control if i try:

root@foozbarz:~ # /usr/local/sbin/unbound-control lookup google.com

[1508191067] unbound-control[36764:0] warning: control-enable is 'no' in the config file.
error: Error setting up SSL_CTX client key and cert
6266609370600:error:02001002:system library:fopen:No such file or directory:bss_file.c:406:fopen('/usr/local/etc/unbound/unbound_control.pem','r')
6266609370600:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:408:
6266609370600:error:140DC002:SSL routines:SSL_CTX_use_certificate_chain_file:system lib:ssl_rsa.c:701:


update:
unbound-control -c /var/unbound/unbound.conf lookup google.com
..works :)
Title: Re: unbound-control system library:fopen:No such file or directory:bss_file.c:406:fo
Post by: franco on October 17, 2017, 07:22:15 am
Hi,

Yes, you need to select the correct config file.


Cheers,
Franco