Hi there,
I've just set the TLS cipher on my production elasticsearch cluster. I have I wathcer scheduled every morning to report a Kibana dashboard and send a pdf via email. Now after the TLS setting I have this error.
"actions": [
{
"id": "send_email",
"type": "email",
"status": "failure",
"error": {
"root_cause": [
{
"type": "s_s_l_handshake_exception",
"reason": "sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target"
}
],
"type": "s_s_l_handshake_exception",
"reason": "sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target",
"caused_by": {
"type": "validator_exception",
"reason": "PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target",
"caused_by": {
"type": "sun_cert_path_builder_exception",
"reason": "unable to find valid certification path to requested target"
}
}
}
}
]
}
This is my wathcer config
{
"trigger": {
"schedule": {
"daily": {
"at": [
"06:30"
]
}
}
},
"input": {
"none": {}
},
"condition": {
"always": {}
},
"actions": {
"send_email": {
"email": {
"profile": "standard",
"attachments": {
"error_report.pdf": {
"reporting": {
"url": "https://10.0.5.0:5601/api/reporting/generate/printablePdf?jobParams=[...]",
"auth": {
"basic": {
"username": "watcher",
"password": "elastic"
}
}
}
}
},
"to": [
"control_room@enterprise.com"
],
"subject": "Report applications errors",
"body": {
"html": "<p>Error report attached</p>"
}
}
}
}
}
This is my elasticsearch.yml.
xpack.security.enabled: true
xpack.security.transport.ssl.enabled: true
xpack.security.transport.ssl.verification_mode: certificate
xpack.security.transport.ssl.keystore.path: /Elastic/elasticsearch-6.7.1/config/certs/my_certs.pfx
xpack.security.transport.ssl.truststore.path: /Elastic/elasticsearch-6.7.1/config/certs/cacerts
xpack.security.transport.ssl.client_authentication: none
xpack.security.http.ssl.enabled: true
xpack.security.http.ssl.client_authentication: optional
xpack.security.http.ssl.verification_mode: certificate
xpack.security.http.ssl.keystore.path: /Elastic/elasticsearch-6.7.1/config/certs/my_certs.pfx
xpack.security.http.ssl.truststore.path: /Elastic/elasticsearch-6.7.1/config/certs/cacerts
All the comunication via https work fine, but this one doesn't. Anyone can help me?