Server certificate CA fingerprint does not match the value configured in caFingerprint
See original GitHub issueI tried to discuss this on the forum but haven’t found any help yet.
I was trying to use the CA Fingerprint in my Client to connect to the servers but would randomly get error messages after some time:
{
"error": "ConnectionError",
"message": "Server certificate CA fingerprint does not match the value configured in caFingerprint",
}
It works and then it doesn’t work, but I can’t find anything that changes that might cause the issue or reproduce it easily because it’s very random. I was able to overcome this by including the CA file instead of the CA Fingerprint and it seems to be working without issue now… but the CA Fingerprint would be much easier to add to an env variable.
Do you have any advice or any ideas on what might be causing this issue? It seems like restarting my proxy server did resolve the issue last time so I believe it might be related to the Javascript client now?
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:6 (1 by maintainers)
Top GitHub Comments
Guys, you need to go to your ES installations directory in the bin folder there’s script 'elasticsearch-certgen’ this can help eg: C:\elasticsearch-8.5.3\bin\elasticsearch-certgen
execute this using CMD, you will get certificates to use in your client app this is how in my Node CODE
{ node: 'https://localhost:9200', auth: { username: 'elastic', password: 'SOMETHIN...', }, tls: { // might be required if it's a self-signed certificate ca: fs.readFileSync('./PATH_TO/NAME_OF.crt'), rejectUnauthorized: false, }, }
I have the same issue. Once in a while the mentioned error happens:
Server certificate CA fingerprint does not match the value configured in caFingerprint
This is client init:
@elastic/elasticsearch@8.2.1
.