2016-12-05 17 views
2

Open VASインストールで証明書が期限切れになりました。 そのため、スキャンを実行しようとすると次のエラーが発生します。Open VAS - サービスが一時的にダウン(証明書の有効期限が切れた)

動作:スタート作業 状態コード:503 ステータスメッセージ:サービスを一時的

ダウン私は、証明書の再作成しようとしました:

[email protected]:~$ sudo /usr/sbin/openvas-mkcert -q -f 
[sudo] password for me: 


[email protected]:~$ sudo /usr/bin/openvas-mkcert-client -n -i 
Generating RSA private key, 4096 bit long modulus 
........................++ 
..................................................................................++ 
e is 65537 (0x10001) 
You are about to be asked to enter information that will be incorporated 
into your certificate request. 
What you are about to enter is what is called a Distinguished Name or a DN. 
There are quite a few fields but you can leave some blank 
For some fields there will be a default value, 
If you enter '.', the field will be left blank. 
----- 
Country Name (2 letter code) [DE]:State or Province Name (full name) [Some-State]:Locality Name (eg, city) []:Organization Name (eg, company) [Internet Widgits Pty Ltd]:Organizational Unit Name (eg, section) []:Common Name (eg, your name or your server's hostname) []:Email Address []:Using configuration from /tmp/openvas-mkcert-client.28853/stdC.cnf 
Check that the request matches the signature 
Signature ok 
The Subject's Distinguished Name is as follows 
countryName   :PRINTABLE:'DE' 
localityName   :ASN.1 12:'Berlin' 
commonName   :ASN.1 12:'om' 
Certificate is to be certified until Dec 5 12:38:09 2017 GMT (365 days) 

Write out database with 1 new entries 
Data Base Updated 
[email protected]:~$ 

をそして再起動...

その後1つは、Webインターフェイスのために正しく切り替わりますが、それはスキャナ1ではないようですか?

これは、ログにあります。

libにSERV:WARNING:2016年12月5日12h41.23 UTC:1533:ピアと手を振ることができませんでした:TLS接続が非正常に終了しました。 イベントタスク:MESSAGE:2016年12月5日12h41.23 UTC:1533:target.meのタスクスキャン(3aca3163-3de2-4519-92af-f649f6bedd7c)は管理者によって開始することができませんでした

チェックオープンVASスクリプトの出力:

openvas-check-setup 2.3.7 
    Test completeness and readiness of OpenVAS-8 
    (add '--v6' or '--v7' or '--v9' 
    if you want to check for another OpenVAS version) 

    Please report us any non-detected problems and 
    help us to improve this check routine: 
    http://lists.wald.intevation.org/mailman/listinfo/openvas-discuss 

    Send us the log-file (/tmp/openvas-check-setup.log) to help analyze the problem. 

    Use the parameter --server to skip checks for client tools 
    like GSD and OpenVAS-CLI. 

Step 1: Checking OpenVAS Scanner ... 
     OK: OpenVAS Scanner is present in version 5.0.7. 
     OK: OpenVAS Scanner CA Certificate is present as /var/lib/openvas/CA/cacert.pem. 
     OK: redis-server is present in version v=3.0.6. 
     OK: scanner (kb_location setting) is configured properly using the redis-server socket: /var/run/redis/redis.sock 
     OK: redis-server is running and listening on socket: /var/run/redis/redis.sock. 
     OK: redis-server configuration is OK and redis-server is running. 
     OK: NVT collection in /var/lib/openvas/plugins contains 50525 NVTs. 
     WARNING: Signature checking of NVTs is not enabled in OpenVAS Scanner. 
     SUGGEST: Enable signature checking (see http://www.openvas.org/trusted-nvts.html). 
     OK: The NVT cache in /var/cache/openvas contains 50548 files for 50525 NVTs. 
Step 2: Checking OpenVAS Manager ... 
     OK: OpenVAS Manager is present in version 6.0.9. 
     OK: OpenVAS Manager client certificate is present as /var/lib/openvas/CA/clientcert.pem. 
     OK: OpenVAS Manager database found in /var/lib/openvas/mgr/tasks.db. 
     OK: Access rights for the OpenVAS Manager database are correct. 
     OK: sqlite3 found, extended checks of the OpenVAS Manager installation enabled. 
     OK: OpenVAS Manager database is at revision 146. 
     OK: OpenVAS Manager expects database at revision 146. 
     OK: Database schema is up to date. 
     OK: OpenVAS Manager database contains information about 49328 NVTs. 
     OK: At least one user exists. 
     OK: OpenVAS SCAP database found in /var/lib/openvas/scap-data/scap.db. 
     OK: OpenVAS CERT database found in /var/lib/openvas/cert-data/cert.db. 
     OK: xsltproc found. 
Step 3: Checking user configuration ... 
     WARNING: Your password policy is empty. 
     SUGGEST: Edit the /etc/openvas/pwpolicy.conf file to set a password policy. 
Step 4: Checking Greenbone Security Assistant (GSA) ... 
     OK: Greenbone Security Assistant is present in version 6.0.11. 
Step 5: Checking OpenVAS CLI ... 
     OK: OpenVAS CLI version 1.4.4. 
Step 6: Checking Greenbone Security Desktop (GSD) ... 
     SKIP: Skipping check for Greenbone Security Desktop. 
Step 7: Checking if OpenVAS services are up and running ... 
     OK: netstat found, extended checks of the OpenVAS services enabled. 
     OK: OpenVAS Scanner is running and listening on all interfaces. 
     OK: OpenVAS Scanner is listening on port 9391, which is the default port. 
     OK: OpenVAS Manager is running and listening on all interfaces. 
     OK: OpenVAS Manager is listening on port 9390, which is the default port. 
     OK: Greenbone Security Assistant is running and listening on all interfaces. 
     OK: Greenbone Security Assistant is listening on port 443, which is the default port. 
Step 8: Checking nmap installation ... 
     WARNING: Your version of nmap is not fully supported: 7.01 
     SUGGEST: You should install nmap 5.51 if you plan to use the nmap NSE NVTs. 
Step 10: Checking presence of optional tools ... 
     OK: pdflatex found. 
     WARNING: PDF generation failed, most likely due to missing LaTeX packages. The PDF report format will not work. 
     SUGGEST: Install required LaTeX packages. 
     OK: ssh-keygen found, LSC credential generation for GNU/Linux targets is likely to work. 
     OK: rpm found, LSC credential package generation for RPM based targets is likely to work. 
     OK: alien found, LSC credential package generation for DEB based targets is likely to work. 
     OK: nsis found, LSC credential package generation for Microsoft Windows targets is likely to work. 

It seems like your OpenVAS-8 installation is OK. 

If you think it is not OK, please report your observation 
and help us to improve this check routine: 
http://lists.wald.intevation.org/mailman/listinfo/openvas-discuss 
Please attach the log-file (/tmp/openvas-check-setup.log) to help us analyze the problem. 

答えて

3

この回答は少し遅くOPのため、おそらくですが、将来のGooglerがここで終わる場合には、これは私のために働いていたものです:

私はまた、有効期限が切れ本命だったという結論に達しました私のOpenVASスキャンが突然実行を停止したときに問題が発生しました。 openvas-check-setupコマンドを使用するとすべてがうまくいったと言われましたが、スキャンを手動で実行しようとすると、同じ503サービスが利用できないというメッセージが表示されます。ログを見ると(私のために場所:/var/log/openvas/openvasmd.log):

WARNING:2017年5月16日19h04.51 UTC:3687を含めて、私に従うべきいくつかの手がかりを与えました:失敗しましたgnutls_bye: プッシュ機能のエラー。 WARNING:2017年5月16日19h04.52 UTC:3686: openvas_server_verify:証明書が信頼されていない WARNING:2017年5月16日19h04.52 UTC:3686:openvas_server_verify: 証明書の有効期限が切れてい

私はgnutls_byeメッセージのトラブルシューティングを始めました。なぜなら、エラーという言葉は警告よりも注意を集める傾向がありますが、最終的には証明書が問題だったからです。

私はOPのmkcertコマンドのバリエーションを使って新しい証明書を作成しましたが、私が信じていなかったと思うステップは、これらの新しい証明書でスキャナの設定を更新することでした。

だから私は、証明書ファイルの場所へのビット近いナビゲート(CDは/ var/libに/ openvas /)、以下のコマンドを実行しました:

openvasmd --modify-scanner <UUID> --scanner-ca-pub CA/cacert.pem --scanner-key-pub CA/clientcert.pem --scanner-key-priv private/CA/clientkey.pem 

あなたは実際のUUIDに置き換える必要がありますスキャナを変更しています。スキャナのリストを取得するには、次の

openvasmd --get-scanners 

をし、最終チェックとして、あなたは、verifyコマンドを使用することができます:それは壊れたが、私は

の非常に助けにならない応答を得た

openvasmd --verify-scanner <UUID> 

スキャナの検証に失敗しました。

しかし、いったん証明書が正常に更新され、スキャナに関連付けられたら(そして、適切な対策のために関連するサービスを再起動する必要があるかもしれません。あるいは、私が行ったようにレイジー/照合コマンドは、

スキャナバージョン:OTP/2.0の行に沿って何かを返す必要があります。

または実行しているタイプ/バージョンに関係なく

FWIW、あなたはここで、「スキャナ証明書の更新」を検索する場合、変更・スキャナステップは、深いOpenVASのドキュメント内に埋め込まれている:http://www.openvas.org/src-doc/openvas-manager/index.html

・ホープこれは誰かに役立ちます!

+1

それは私を助けました!どうも。 –

関連する問題