Ask Your Question

Revision history [back]

Maybe you should try to configure GPG manually, before running openvas-setup - I have in mind that there are some errors in the openvas-setup:

# add more entropy
yum -y install rng-tools
rngd --rng-device /dev/urandom

# create some missing directories
mkdir -p /usr/share/openvas/gsa/locale
mkdir -p /var/lib/openvas/openvasmd/gnupg
mkdir -p /var/lib/openvas/scap-data/private

# fix permissions and run gpg agent
chmod 0700 /var/lib/openvas/openvasmd/gnupg
gpg-agent --homedir=/var/lib/openvas/openvasmd/gnupg --daemon

After that:

openvas-setup

Maybe you should try to configure GPG manually, before running openvas-setup - I have in mind that there are some errors in the openvas-setup:

# add more entropy
yum -y install rng-tools
rngd --rng-device /dev/urandom

# create some missing directories
mkdir -p /usr/share/openvas/gsa/locale
mkdir -p /var/lib/openvas/openvasmd/gnupg
mkdir -p /var/lib/openvas/scap-data/private

# fix permissions and run gpg agent
chmod 0700 /var/lib/openvas/openvasmd/gnupg
gpg-agent --homedir=/var/lib/openvas/openvasmd/gnupg --daemon

After that:

openvas-setup

EDIT: after that, if building the database is ok, but for example certificates are missing, try this:

openvas-check-setup
gpg --enable-special-filenames --batch --no-sk-comment --homedir /var/lib/openvas/gnupg --status-fd 17 --no-tty --charset utf8 --enable-progress-filter --gen-key -- -&18