OpenVAS certificate problem

I had an old installation of OpenVAS. Tried to update it: loading the syncs from the servers went fine, but whenever I tried to do:
openvasmd -u --progress

I got:
Rebuilding NVT cache… failed.

In the logs i found:
Failed to shake hands with peer: The TLS connection was non-properly terminated

Which made me think this is a TLS related problem.

This one, suggested this also
this link

but giving also false information that this is gnutls version related.

It looked like my certs expired, so I recreated them with
openvas-mkcert
and
openvas-mkcert-client -n -i

but still similar problem. Tried newer versions of OpenVAS, but to no avail.

The solution:
openvasmd --modify-scanner=08b69003-5fc2-4037-a479-93b440211c73 --scanner-ca-pub /usr/local/var/lib/openvas/CA/cacert.pem --scanner-key-pub /usr/local/var/lib/openvas/CA/clientcert.pem --scanner-key-priv /usr/local/var/
lib/openvas/private/CA/clientkey.pem

Posted in Uncategorized | Leave a comment

Irssi in jail: setupterm() failed for TERM=xterm: 0


$ irssi
NO WINDOWS: -!- Irssi: Invalid charset: CP1252
setupterm() failed for TERM=xterm: 0
Can't initialize screen handling, quitting.
You can still use the dummy mode with -d parameter

 

I kept getting the aforementioned error while trying to start irssi under chroot/jails environment. Making sure that ncurses and other needed libraries are already present in the jail environment didn’t solve the problem either.

The Solution:

make sure /usr/share/terminfo/x/* is copied into jail

 

Posted in in english | Tagged , , , | Leave a comment

Wake On LAN (WOL) Howto

To enable Wake-On-Lan functionality:

  1. Make sure it is enabled in BIOS settings
  2. Put the following code to /etc/rc.local
    (the NIC will be then properly initialized on the system startup):
    ethtool -s eth0 wol g
Posted in in english | Tagged , , | Leave a comment