Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/search/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用SSL密钥库记录HTTP输入_Ssl_<img Src="//i.stack.imgur.com/RUiNP.png" Height="16" Width="18" Alt="" Class="sponsor Tag Img">elasticsearch_Ssl Certificate_Logstash - Fatal编程技术网 elasticsearch,ssl-certificate,logstash,Ssl,elasticsearch,Ssl Certificate,Logstash" /> elasticsearch,ssl-certificate,logstash,Ssl,elasticsearch,Ssl Certificate,Logstash" />

使用SSL密钥库记录HTTP输入

使用SSL密钥库记录HTTP输入,ssl,elasticsearch,ssl-certificate,logstash,Ssl,elasticsearch,Ssl Certificate,Logstash,我想要什么: 我想使用“邮递员”将日志发送到带有SSL的http日志存储输入 我已经做过的: 我使用http插件在我的logstash.conf文件中添加了SSL配置: 然后我需要keystore.jks。下一步将从以下方面采取: 我创建了私钥cakey.pem和公共证书cacert.pem 我使用cakey.pem和cacert.pem创建了keystore.p12 我将keystore.p12转换为keystore.jks 当我尝试使用“邮递员”发送日志时,什么都没有发生——“邮递员”显示“

我想要什么:

我想使用“邮递员”将日志发送到带有SSL的http日志存储输入

我已经做过的:

  • 我使用http插件在我的logstash.conf文件中添加了SSL配置:
  • 然后我需要keystore.jks。下一步将从以下方面采取:

  • 我创建了私钥cakey.pem和公共证书cacert.pem
  • 我使用cakey.pemcacert.pem创建了keystore.p12
  • 我将keystore.p12转换为keystore.jks
  • 当我尝试使用“邮递员”发送日志时,什么都没有发生——“邮递员”显示“无法获得任何响应”-应该是“ok”。旋度响应:
  • 问题:


    我做错了什么?

    在http输入中,更改

    ssl => on
    

    openssl req 
     -newkey rsa:2048 
     -x509
     -keyout cakey.pem 
     -out cacert.pem 
     -days 3650
    
    openssl pkcs12 
     -export 
     -in cacert.pem 
     -inkey cakey.pem
     -certfile cacert.pem 
     -out keystore.p12
    
    keytool
     -importkeystore 
     -srckeystore keystore.p12 
     -srcstoretype pkcs12 
     -destkeystore keystore.jks 
     -deststoretype JKS
    
     curl: (52) Empty reply from server
    
    ssl => on
    
    ssl => true