Elast Agent Error: Received fatal alert: bad_certificate

Error

[2023-11-15T03:54:06,861][WARN ][o.e.h.AbstractHttpServerTransport] [ip-172-31-95-25] caught exception while handling client http traffic, closing connection Netty4HttpChannel{localAddress=/172.31.95.25:9200, remoteAddress=/172.31.95.25:38564}io.netty.handler.codec.DecoderException: javax.net.ssl.SSLHandshakeException: Received fatal alert: bad_certificate
        at io.netty.codec@4.1.94.Final/io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:499)
        at io.netty.codec@4.1.94.Final/io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:290)
        at io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)
        at io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
        at io.netty.transport@4.1.94.Final/io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)

See logs for more details.

Solution

Add ssl.verification_mode: none in elastic-agent.yml

$ systemctl stop elastic-agent
$ cd /opt/Elastic/Agent
$ vi elastic-agent.yml
$ systemctl start elastic-agent
$ systemctl status elastic-agent


outputs:
  default:
    type: elasticsearch
    hosts:
      - 'https://172.31.95.25:9200'
    username: 'elastic'
    password: '7SNe*fn_aqroKovhjH4E'
    ssl.verification_mode: none
output_permissions:
0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x