@ronniepg You need to authenticate to talk with the OpenSearch cluster when the security plugin is enabled.
To retrieve SSL certificates you’ll need to use the admin certificate defined in plugins.security.authcz.admin_dn in opensearch.yml file.
@pablo thanks for confirming that the admin certificate is required to get the certificate details. yes i did use the authentication - removed the credentials before posting here.