I am no longer able to log in to elasticsearch using the builtin users. kibana.log also is showing that kibana user is not able to authenticate.
Reseting the building passwords with
bin/elasticsearch-setup-passwords auto -u "http://localhost:9200"
also doesn't work, it throws an error saying:
Exception in thread "main" java.lang.IllegalArgumentException: did not find a SSLContext
bin/elasticsearch-setup-passwords can only be run once (unless you have complete deleted all security informtion from your cluster). Regardless of the error you are currently receiving, this is not a viable solution.
That doesn't really make sense - if you're trying to access http rather than https, it shouldn't be trying to find a SSLContext. Can you provide the full error trace? I'd like to understand what's going on here.