Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
OpenSearch 2.6.0
Server OS: Fedora Server 37
Describe the issue:
From Documentation:
plugins.security.ssl.transport.pemcert_filepath - Path to the X.509 node certificate chain (PEM format)
plugins.security.ssl.transport.pemtrustedcas_filepath - Path to the root CAs (PEM format)
plugins.security.ssl.http.pemcert_filepath - Path to the X.509 node certificate chain (PEM format)
plugins.security.ssl.http.pemtrustedcas_filepath - Path to the root CAs (PEM format)
securityadmin.sh
-cert - The location of the PEM file containing the admin certificate and all intermediate certificates, if any.
-cacert - The location of the PEM file containing the root certificate.
Iâve got such certificate for admin:
jet.pem - node certificate
jet-key.pem - node key
jet-ca.pem - as documentation says chain of CA + INT-CA
CA.pem - Root CA
admin.pem - as documentation says admin certificate + INT-CA
CA and INT-CA jas been added to /etc/pki/ca-trust/source/anchors/
update-ca-trust
securityadmin.sh -cd /opt/opensearch/config/opensearch-security/ -cacert CA.pem -cert admin.pem -key admin-key.pem -icl -nhnv
ERR: An unexpected SSLHandshakeException occured: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Another try:
securityadmin.sh -cd /opt/opensearch/config/opensearch-security/ -cacert jet-ca.pem -cert admin.pem -key admin-key.pem -icl -nhnv
ERR: An unexpected SSLHandshakeException occured: Received fatal alert: certificate_unknown
Any suggestions?
Configuration:
network.host: 0.0.0.0
discovery.type: single-node
plugins.security.disabled: false
plugins.security.ssl.transport.pemcert_filepath: /opt/opensearch/config/jet.pem
plugins.security.ssl.transport.pemkey_filepath: /opt/opensearch/config/jet-key.pem
plugins.security.ssl.transport.pemtrustedcas_filepath: /opt/opensearch/config/jet-ca.pem
plugins.security.ssl.http.enabled: true
plugins.security.ssl.http.pemcert_filepath: /opt/opensearch/config/jet.pem
plugins.security.ssl.http.pemkey_filepath: /opt/opensearch/config/jet-key.pem
plugins.security.ssl.http.pemtrustedcas_filepath: /opt/opensearch/config/jet-ca.pem
plugins.security.allow_default_init_securityindex: true
plugins.security.authcz.admin_dn:
- CN=admin.apps.okd.cvbs.jet.msk.su,OU=IT,O=JET,L=Moscow,ST=Moscow,C=RU
plugins.security.nodes_dn:
- CN=*.apps.okd.cvbs.jet.msk.su
plugins.security.audit.type: internal_opensearch
plugins.security.enable_snapshot_restore_privilege: true
plugins.security.check_snapshot_restore_write_privileges: true
plugins.security.restapi.roles_enabled: [âall_accessâ, âsecurity_rest_api_accessâ]
Relevant Logs or Screenshots: