I'm setting up new elastic cluster with security with certificates. However when doing curl requests its not working out, any help on this will be much appreciated.
elasticsearch.yml :
This is normal and expected. You are using a certificate that you have generated yourself signed by a Certificate Authority that you have also generated youself and curl is by default using your OS truststore, that obviously knows nothing about this custom Certificate Authority.
You can use the -k flag with curl that will disable verification of the server's certificate or, even better
a. Export the CA certificate from the PKCS#12 bundle you have with openssl pkcs12 -in elastic-certificates.p12 -cacerts -nokeys | sed '/-----BEGIN CERTIFICATE-----/,$!d' > cacert.crt
b. Run curl with --cacert cacert.crt so that it can validate the server's certificate correctly
The only mention of hostname verification in that blog post that I can find is
Also note that the -k option is required as we did not create certificates with the hostnames specified, and therefore hostname verification must be turned off.
which is equivalent to what I'm saying in 1. above. Not sure what you mean, but please feel free to elaborate and add some detail to your question
You can't configure curl's behavior in elasticsearch, so I'm not really sure what you are asking. Hostname verification is something that the client ( curl ) does, how would you configure this in elasticsearch ?
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.