You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ssl_certificate_validation option is not taking effect. Irrespective of whether we give the value as true or false, it is always taken as true.
During SSL certification validation, logstash is doing a strict host name check. As part of this, it is not supporting wildcard certificates where CN is like *.subdomain.domain.com. Either this needs to be fixed or it would be ideal to have another option to the http plugin like, for example, "strict_host name_check" which can be set to true or false.
Logstash version :1.5.4
Http plugin version :1.1.0
java : 1.8.0_51.
dandrestor, arsatiki, josuemontano, Rmond, lifeofguenter and 19 more
Still awaiting response on this from "logstash-dev"
Please provide an update on this issue, Is there any plan of adding the changes in latest release ?
I'm getting the same error when using
ssl_certificate_validation => false
I get
"error" => "PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target"
I just downloaded logstash 2.0 and installed the http_poller plugin
I was able to fix this problem. Check whether your application is using JDK or JRE. Based on that try installing the certificate in the keystore.
Let me know if you have any queries.
@yaoyaminaco0571 's suggestion to add truststore path worked for me in v7.16.1
@bernielomax as the error output mentioned "logstash unable to find valid certification path to requested target", you should add a fake path to it since the code needs.
The updated http output which can be used to disable verification (using ssl_verification_mode => none) will be part of Logstash 8.1, in the mean time try bin/logstash-plugin update logstash-output-http (which should update the plugin to >= 5.3.0)
The issue also mentions ES output with the ssl_certificate_verification => false option, the issue while similar do not have the same cause - for ES output disabling verification had some effect (allowing self-signed certificates) but did not disable verification completely. This issue has also been resolved and should be available since Logstash 7.17.0.
Activity
ayashjorden commentedon Sep 28, 2015
👍
Also experienced this behaviour.
@suraj-kamath nice description of the problem :)
suraj-kamath commentedon Oct 4, 2015
@logstash-dev's can we have an update here ?
ayashjorden commentedon Oct 4, 2015
@suraj-kamath I've found that 'ssl_certificate_validation' is used here.
Does it help?
deeptjos commentedon Oct 23, 2015
Still awaiting response on this from "logstash-dev"
Please provide an update on this issue, Is there any plan of adding the changes in latest release ?
suyograo commentedon Oct 23, 2015
@suraj-kamath is this plugin still trying to do cert validation when
ssl_certificate_validation
is false?clausy commentedon Nov 6, 2015
I'm getting the same error when using
ssl_certificate_validation => false
I get
"error" => "PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target"
I just downloaded logstash 2.0 and installed the http_poller plugin
deeptjos commentedon Jan 21, 2016
@logstash-dev's Any update on this ?
Also looks like Logstash does not support SNI, Please confirm.
type0lang commentedon Mar 29, 2016
+1
sameerpanicker commentedon Apr 4, 2016
I am also getting the same error.
"error" => "PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target"
NikolaeVarius commentedon Apr 8, 2016
+1 Getting same issue as above
rlwmmw commentedon Apr 14, 2016
+1 Need a workaround!
lifeofguenter commentedon May 18, 2016
+1
sameerpanicker commentedon May 19, 2016
I was able to fix this problem. Check whether your application is using JDK or JRE. Based on that try installing the certificate in the keystore.
Let me know if you have any queries.
45 remaining items
denisvll commentedon Aug 3, 2021
+1
sennl commentedon Aug 12, 2021
+1
thunderwood19 commentedon Aug 16, 2021
Since 2015...
zgfh commentedon Aug 18, 2021
+1
hamparid commentedon Oct 21, 2021
+1 (We have wildcard Certs AND SSL settings to turn off verification in LS don't work)
M9k commentedon Nov 4, 2021
+1
smnschndr commentedon Nov 12, 2021
+1
jeffwong-mocs commentedon Dec 13, 2021
@yaoyaminaco0571 's suggestion to add truststore path worked for me in v7.16.1
yaoyaminaco0571 commentedon Dec 13, 2021
bastianhjaeger commentedon Dec 17, 2021
Facing the same issue (out of a sudden) with no cert used at all .
This is my output section:
And I have no truststore to set ot a cacert.
kares commentedon Feb 3, 2022
A lot has been going on here over the years, but let me tackle this down:
ssl_certificate_validation
optionssl_certificate_validation => false
had no effect and was later removed to confuse usersssl_verification_mode
The updated http output which can be used to disable verification (using
ssl_verification_mode => none
) will be part of Logstash 8.1, in the mean time trybin/logstash-plugin update logstash-output-http
(which should update the plugin to >= 5.3.0)The issue also mentions ES output with the
ssl_certificate_verification => false
option, the issue while similar do not have the same cause - for ES output disabling verification had some effect (allowing self-signed certificates) but did not disable verification completely. This issue has also been resolved and should be available since Logstash 7.17.0.yaoyaminaco0571 commentedon Feb 3, 2022