GNU/Linux >> Linux の 問題 >  >> Ubuntu

Ubuntuランドスケープ–サーバー証明書の検証に失敗しましたか?

Ubuntu 16.04の新規インストールにLandscapeをインストールし、クライアントを登録しようとしています。 CAを作成し、証明書に署名しました(https://help.landscape.canonical.com/LDS/SSL)。また、クライアントの信頼できる証明書に証明書を追加しました。

次に、次のコマンドを使用して、クライアント(Ubuntu 16.04)をサーバーに接続しようとします。

sudo landscape-config --computer-title "Agent" --account-name standalone  --url https://landskap/message-system --ping-url http://landskap/ping --ssl-public-key=/etc/ssl/certs/landscape_server_ca.pem

構成ダイアログの後、次のエラーメッセージが表示されます:

サーバーのSSL情報が正しくないか、署名の検証に失敗します!
サーバーが自己署名証明書を使用している場合は、必ず–ssl-public-keyパラメーターを指定してください。

はい、私たちのサーバーは「Landskap」と呼ばれています…

/var/log/landscape/broker.log に追加情報があるかどうか、クライアントを確認しました 次のエラーエントリが見つかりました。

PyCurlError: Error 60: server certificate verification failed. CAfile: /usr/local/share/ca-certificates/landscape_server_ca.crt CRLfile: none
2017-04-18 14:08:38,978 ERROR    [MainThread] Message exchange failed: server certificate verification failed. CAfile: /usr/local/share/ca-certificates/landscape_server_ca.crt CRLfile: none
2017-04-18 14:08:38,978 INFO     [MainThread] Message exchange failed.
2017-04-18 14:08:38,979 INFO     [MainThread] Message exchange completed in 0.17s.
2017-04-18 14:09:38,982 INFO     [MainThread] Starting urgent message exchange with https://landskap/message-system.
2017-04-18 14:09:39,149 ERROR    [PoolThread-twisted.internet.reactor-0] Error contacting the server at https://landskap/message-system.
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/landscape/broker/transport.py", line 71, in exchange
    message_api)
  File "/usr/lib/python2.7/dist-packages/landscape/broker/transport.py", line 45, in _curl
    headers=headers, cainfo=self._pubkey, curl=curl))
  File "/usr/lib/python2.7/dist-packages/landscape/lib/fetch.py", line 109, in fetch
    raise PyCurlError(e.args[0], e.args[1])

助けてください🙁

承認された回答:

現在テストできませんが、クイックスタートガイドでは、証明書ファイルを/etc/landscape/client.confに追加することを推奨しています。 この行で:

ssl_public_key = /etc/landscape/server.pem

Ubuntu
  1. Ubuntu サーバー GUI

  2. Ubuntu サーバー ロゴ

  3. Ubuntu サーバー アイコン

  1. Ubuntu20.04NTPサーバー

  2. Ubuntu 14サーバーとXrdp?

  3. Git クローンの失敗:サーバー証明書の検証に失敗しました

  1. Ubuntu20.04サーバーのインストール

  2. Ubuntu20.04でOpenVPNサーバーをセットアップする方法

  3. Ubuntu20.04PostgreSQLのインストール