Where did this myssl.pfx file come from?
Based on the fact that it's named "pfx" I suspect it was created by tooling in a microsoft/windows environment.
If so, then it is quite likely that it has the right data in it to act as a keystore, but not as a truststore.
The technical explanation is that a PKCS#12 file (your .pfx) is technically a key storage format. Java uses its "keystore" format to also store CAs, which it calls a "truststore", and it uses special PKCS#12 entries to do that.
It is rare for non-Java tooling to create those trust entries.
If that pfx was issued to you by a CA, then you probably want to get a copy of their CA cert in PEM format, and then replace the xpack.security.transport.ssl.truststore.path with
The PFX filen was delivered directly from the CA (DigiCert). The PKCS12/PFX file contains the entire chain including the CA cert. It just did not make (much) sense that communication with 9200 was ok and 9300 was not. We did the configuration exactly as stated in your documentation at
That's not the issue. Using a PKCS#12 as a truststore requires additional entries. It will not automatically trust every issuer of every certificate that is stored as a key, it needs explicit entires for "trust this CA (chain)".
Oh. You're trying to connect to port 9300 using https. That won't work.
9200 is the http port.
9300 is the transport port. It is used for internal communications in a bespoke binary format , it cannot be used over https.
Hmmm the cluster nodes are still getting the same error when trying to communicate - bad certificate. As stated - we have followed the documentation. Now we have created a new standard jks keystore and change the elastic configuration - and a new error occurs -
Caused by: io.netty.handler.ssl.NotSslRecordException: not an SSL/TLS record
So I guess it had something to do with - elastic not being able to figure out the pfx format for the 9300 communication but could with plain https at 9200.
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.