After setup password other nodes not authenticating

i have elk cluster recently upgraded to 7 from 6.5.
for enabling security i did

  1. set following and restart all nodes
    xpack.security.enabled: true
    xpack.security.transport.ssl.enabled: true

  2. generated interactive passwords on node2

i am able to connect /authetic in node2 where i ran setup-password .
curl -u elastic 'http://hostname:9200/_xpack/security/_authenticate?pretty'

but other nodes and kibana nodes throwing // [security_exception] failed to authenticate user [elastic] //

Hi,
Have a look at this guide: https://www.elastic.co/blog/getting-started-with-elasticsearch-security (Chapter: Configure TLS and authentication)
You need to configure the certificates on all nodes.

Regards,
Simon