{"id":203,"date":"2016-10-14T17:28:07","date_gmt":"2016-10-14T15:28:07","guid":{"rendered":"http:\/\/sasha.grotacienia.net\/?p=203"},"modified":"2016-10-14T17:28:07","modified_gmt":"2016-10-14T15:28:07","slug":"openvas-certificate-problem","status":"publish","type":"post","link":"https:\/\/sasha.grotacienia.private.bjubba.com\/index.php\/2016\/10\/14\/openvas-certificate-problem\/","title":{"rendered":"OpenVAS certificate problem"},"content":{"rendered":"<p>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:<br \/>\n<code>openvasmd -u --progress<\/code><\/p>\n<p>I got:<br \/>\nRebuilding NVT cache&#8230; failed.<\/p>\n<p>In the logs i found:<br \/>\n<code>Failed to shake hands with peer: The TLS connection was non-properly terminated<br \/>\n<\/code><\/p>\n<p>Which made me think this is a TLS related problem.<\/p>\n<p>This one, suggested this also<br \/>\n<a href=\"http:\/\/lists.wald.intevation.org\/pipermail\/openvas-discuss\/2014-June\/006309.html\">this link<\/a><\/p>\n<p>but giving also false information that this is gnutls version related.<\/p>\n<p>It looked like my certs expired, so I recreated them with<br \/>\n<code>openvas-mkcert<\/code><br \/>\nand<br \/>\n<code>openvas-mkcert-client -n -i<\/code><\/p>\n<p>but still similar problem. Tried newer versions of OpenVAS, but to no avail.<\/p>\n<p>The solution:<br \/>\n<code>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\/<br \/>\nlib\/openvas\/private\/CA\/clientkey.pem<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 &#8211;progress I got: Rebuilding NVT cache&#8230; failed. In the logs i found: Failed &hellip; <a href=\"https:\/\/sasha.grotacienia.private.bjubba.com\/index.php\/2016\/10\/14\/openvas-certificate-problem\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-203","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/sasha.grotacienia.private.bjubba.com\/index.php\/wp-json\/wp\/v2\/posts\/203","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sasha.grotacienia.private.bjubba.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sasha.grotacienia.private.bjubba.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sasha.grotacienia.private.bjubba.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sasha.grotacienia.private.bjubba.com\/index.php\/wp-json\/wp\/v2\/comments?post=203"}],"version-history":[{"count":0,"href":"https:\/\/sasha.grotacienia.private.bjubba.com\/index.php\/wp-json\/wp\/v2\/posts\/203\/revisions"}],"wp:attachment":[{"href":"https:\/\/sasha.grotacienia.private.bjubba.com\/index.php\/wp-json\/wp\/v2\/media?parent=203"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sasha.grotacienia.private.bjubba.com\/index.php\/wp-json\/wp\/v2\/categories?post=203"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sasha.grotacienia.private.bjubba.com\/index.php\/wp-json\/wp\/v2\/tags?post=203"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}