Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
{
"name" : "opensearch2",
"cluster_name" : "opensearch",
"cluster_uuid" : "7oGIJSAeSFyk84VYI-suvA",
"version" : {
"distribution" : "opensearch",
"number" : "2.11.1",
"build_type" : "deb",
"build_hash" : "6b1986e964d440be9137eba1413015c31c5a7752",
"build_date" : "2023-11-29T21:43:44.221253956Z",
"build_snapshot" : false,
"lucene_version" : "9.7.0",
"minimum_wire_compatibility_version" : "7.10.0",
"minimum_index_compatibility_version" : "7.0.0"
},
"tagline" : "The OpenSearch Project: https://opensearch.org/"
}
Describe the issue:
I have ssl disabled in opensearch.yml:
plugins.security.ssl.http.enabled: false
I want to change the admin password from the default. It looks like to do that, I need to edit internal_users.yml and then run securityadmin.sh
sudo OPENSEARCH_JAVA_HOME=/usr/share/opensearch/jdk /usr/share/opensearch/plugins/opensearch-security/tools/securityadmin.sh -f internal_users.yml -cacert /etc/opensearch/spi-tools-root-ca.pem -cert /etc/opensearch/spi-tools-admin.pem
it fails with:
ERR: An unexpected IOException occured: Unrecognized SSL message, plaintext connection?
I see in https://opensearch.org/docs/latest/security/configuration/security-admin/
it says:
securityadmin.sh
requires that SSL/TLS transport is enabled on your opensearch cluster. In other words, make sure that theplugins.security.ssl.http.enabled: true
is set inopensearch.yml
before proceeding.
so I’m stuck. How do I change my admin password without having ssl enabled?