i'm trying to send data using metricbeat here v8.8.2 and i'm trying to use fingerprint as replacement of certificate_authorities but i got an error like this
{"log.level":"warn","@timestamp":"2023-07-29T07:26:38.637+0700","log.logger":"tls","log.origin":{"file.name":"tlscommon/tls_config.go","file.line":186},"message":"no CA certificate matching the fingerprint","service.name":"metricbeat","ecs.version":"1.6.0"}
and here is my config:
output.elasticsearch:
# Array of hosts to connect to.
hosts: ["https://192.168.11.15:9200"]
ssl:
# enabled: true
ca_trusted_fingerprint: '0FF09F03EEB7985D0DD95E6A450251F395958AA425F6CB2A1EC6EE39C5FDBADB'
# ssl.certificate_authorities: ["/etc/metricbeat/ca.crt"]
i'm sure that the fingerprint is generated from the right CA certificate. but i really don't know why i can't use this fingerprint to send data to elastic. did i miss something?
Yes, that is so weird. If i define certificate_authorities, the connection to elastic was established but that's not happen when i try to use ca_trusted_fingerprint
hello @stephenb sorry for the late response. here is the output with each configuration
Using certificate
elasticsearch: https://192.168.100.227:9200...
parse url... OK
connection...
parse host... OK
dns lookup... OK
addresses: 192.168.100.227
dial up... OK
TLS...
security: server's certificate chain verification is enabled
handshake... OK
TLS version: TLSv1.3
dial up... OK
talk to server... OK
version: 8.8.2
Using fingerprint
elasticsearch: https://192.168.100.227:9200...
parse url... OK
connection...
parse host... OK
dns lookup... OK
addresses: 192.168.100.227
dial up... OK
TLS...
security: server's certificate chain verification is enabled
handshake... ERROR x509: certificate signed by unknown authority
note: sorry. this is from another server for testing. the previous ca.crt and the server was destroyed. so maybe that is quite a difference but this uses the same config as my first post
in documentation it said from CA, right? what I'm trying to say is, I made a new server to test this. and I generated a new certificate too. so if you see some unrelated information from my recent post for example the path of the certificate or something it's expected. but I can make sure i made the same config like this
output.elasticsearch:
# Array of hosts to connect to.
hosts: ["https://192.168.11.15:9200"]
ssl:
# enabled: true
ca_trusted_fingerprint: 'xxx'
# ssl.certificate_authorities: ["/etc/metricbeat/ca.crt"]
quotes, double quotes, I already tried those two options
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.