2016-12-06 6 views
1

サーバRESTAPIを照会するためにlogstash http_pollerを使用しようとしています。私はexploreを介してサーバーpemをダウンロードし、keytoolでjksファイルを生成します。 "PKIXパス構築に失敗しました:sun.security.provider.certpath.SunCertPathBuilderException:要求されたターゲットへの有効な証明書パスが見つかりません"。何が悪いのか分からない。logstach http_poller ssl certification issue

設定以下のように:ところで

http_poller { 
    urls => { 
     restapi => { 
     method => get 
     url => "https://path_to_resources 
     headers => { 
      Accept => "application/json" 
     } 
     truststore => "/path/generated.truststore.jks" 
     truststore_password => "xxx" 
     ssl_certificate_validation => false 
     auth => { 
      user => "xxx" 
      password => "xxx" 
     } 
     } 
    } 
    request_timeout => 60 
    interval => 60000 
    codec => "json" 
    metadata_target => "http_poller_metadata" 
    } 
}  

、どのような影響かのssl_certificate_validationはfalseとして設定されていますか?

+0

ルビーlibaryあなたはそれを解決しましたか? –

答えて

0

証明書が無効です。

​​

については、それが本当のインパクトを持っていないのhttp-プラーがマンティコアに基づいており、ApacheのHCのリレー
which does not support this hook see

関連する問題