Hi @Juanma
Thanks for replying,
I need http_poller plugin because i need to parse the json and need to run ruby logic to extract the fields in json response. So i thought http_poller is better choice as per my knowledge. Please correct me if i am worng, or suggest if there is any other option
Coming to the certificate issue.
I forgot to mention in above post that, I am calling https end point url which have ip address, but i specify hostname of it under /etc/hosts where my http_poller is running.
But i couldn't understand about subjectAltName that you mentioned. If I am right, you are taking about the way to generate certificate is not exactly right
Please help me to correct with right syntax of generating certificate
Yes it's related with the way of generating the certs, as far as I can see you are not generating any certificate, you are downloading them from "10.34.55.344:8888" then generating a pem format and then importing it inside a JKS.
What you should to it's to check if the certificate generated to that host, have the subjectAltName attribute with the hostname to which you are pointing.
The "DNS:" value must match your url hostname in order to work.
In case there is not DNS values or IPs values and you want to verify the certificate you must remake the certs with the correct parameters or you allways can skip certificate validation skipping it with "verify_cert => false"
In other hand, I didn't know you needed a parsing of the input, that's why I suggested you heatbeat
Firstly I verfied any DNS or subaltnames in the server certificate which I downloaded directly earlier, but couldn't see any DNS names in server certificate or subaltnames
Then I tried by disabling validating certificates using verify_cert => false , but no luck
Finally I created self sign certificate and generated truststore jks file out of it, But this time it is different error which is related to path, But I provided right jks file path as in the below configuration. Please suggest if you have some thought on these lines
"http_request_failure"=>{"error"=>"PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target"
Below is my sample updated http_poller configuration file:
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.