I have generated SSL certificates for Filebeat (v6.1.0, ELK 5.6.4) and deployed them to the client and configured Filebeat to use the ssl.certificate_authorities
in filebeat.yml
. However, filebeat cannot validate the SSL certificate even though I have specified the subjectAlternateName
in [ v3_ca ]
in the SSL configuration.
Generate the key:
$ sudo openssl req -config cert.cnf -x509 -batch -nodes -newkey rsa -keyout private/logstash-forwarder.key -out certs/logstash-forwarder.crt
cert.cnf
[ req ]
prompt = no
distinguished_name = req_distinguished_name
[ req_distinguished_name ]
countryName = BL
stateOrProvinceName = blah
localityName = blah
commonName = xxx.xxx.xxx.xxx
[ v3_ca ]
subjectAltName = IP:xxx.xxx.xxx.xxx
Why am I still getting the following error?
ERR Failed to connect: x509: cannot validate certificate for xxx.xxx.xxx.xxx because it doesn't contain any IP SANs