The sg_internal_users.yml have different user passwords from the password I generated using the certification script.
Here are the steps I followed:
1. Generating certificates './gen_client_node_cert.sh kirk change capass'
2. Generating sgadmin './sgadmin.sh -ts truststore.jks -tspass changeit -ks kirk-keystore.jks -kspass changeit -cd ../sgconfig -icl -nhnv'
3. Accessing localhost:9200, entering username and password of ‘kirk' and ‘changeit’ and it doesn’t work. I tried again with ‘kirk’ as the password, and it worked. I look to see where ‘kirk’ password is set and I found the following search-guard-2/sgconfig/sg_internal_users.yml
kirk:
hash: $2a$12$xZOcnwYPYQ3zIadnlQIJ0eNhX1ngwMkTN.oMwkKxoGvDVPn4/6XtO
#password is: kirk
‘kirk’ is not the password I created for kirk, so I assume the ‘sg_internal_users.yml’ is part of the plugin, the question is how can I regenerate with the users and passwords I am creating.