# NotSslRecordException: not an SSL/TLS record

**URL:** <https://forum.opensearch.org/t/notsslrecordexception-not-an-ssl-tls-record/18998>\
**Category:** Security\
**Tags:** discuss, troubleshoot, configure\
**Created:** [April 23, 2024, 11:11am UTC](https://forum.opensearch.org/t/notsslrecordexception-not-an-ssl-tls-record/18998 "2024-04-23T11:11:48Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Setplus](https://avatars.discourse-cdn.com/v4/letter/s/8dc957/32.png) [@Setplus](https://forum.opensearch.org/u/Setplus)\
**Post date:** [April 23, 2024, 11:11am UTC](https://forum.opensearch.org/t/notsslrecordexception-not-an-ssl-tls-record/18998/1 "2024-04-23T11:11:49Z")

</div>

Hi,

OpenSearch: v2.13  
system: ubuntu 22.04  
docker based installation

There are two nodes: `manager1.opensearch.test.com` and `data1.opensearch.test.com`.  
And there is opensearch dashboard: `dashboard.opensearch.test.com`.

**manager1** , **data1** and **dashboard** are in dockers and proxied by nginx.

On **manager1** node opensearch in docker with **cluster\_manager** role is running inside docker container.  
On **data1** node – opensearch with **data,ingest** roles.

I use self signed certificates for configuring TLS/SSL connection between these two nodes according to [this page](https://opensearch.org/docs/latest/security/configuration/generate-certificates/).

TLS communication is normally configured between **manager1** and **data1** nodes (cluster is in green state)

But when i try to configure TLS communication between **manager1** and **dashboard** i get errors on **dashobard** side

`[ConnectionError]: unable to get local issuer certificate`

**Question** : What should i change for successful TLS connection between **dashboard** and **manager1**?

**Commands for generating certificates** :

```auto
openssl genpkey -out root-ca.key -algorithm RSA -pkeyopt rsa_keygen_bits:2048
openssl req -new -x509 -sha256 -key root-ca.key -subj "/C=GB/L=London/O=test/CN=opensearch.test.com" -out root-ca.pem -days 800

openssl genpkey -out admin/admin.key -algorithm RSA -pkeyopt rsa_keygen_bits:2048
openssl pkcs8 -inform PEM -outform PEM -in admin/admin.key -topk8 -nocrypt -v1 PBE-SHA1-3DES -out admin/admin_pkcs8.key
openssl req -new -key admin/admin_pkcs8.key -subj "/C=GB/L=London/O=test/CN=admin.opensearch.test.com" -out admin/admin.csr
openssl x509 -req -in admin/admin.csr -CA root-ca.pem -CAkey root-ca.key -sha256 -out admin/admin.pem -days 800

openssl genpkey -out manager1/manager1.key -algorithm RSA -pkeyopt rsa_keygen_bits:2048
openssl pkcs8 -inform PEM -outform PEM -in manager1/manager1.key -topk8 -nocrypt -v1 PBE-SHA1-3DES -out manager1/manager1_pkcs8.key
openssl req -new -key manager1/manager1_pkcs8.key -subj "/C=GB/L=London/O=test/CN=manager1.opensearch.test.com" -out manager1/manager1.csr
echo 'subjectAltName=DNS:manager1.opensearch.test.com' > manager1/manager1.ext
openssl x509 -req -in manager1/manager1.csr -CA root-ca.pem -CAkey root-ca.key -sha256 -out manager1/manager1.pem -days 800 -extfile manager1/manager1.ext

openssl genpkey -out data1/data1.key -algorithm RSA -pkeyopt rsa_keygen_bits:2048
openssl pkcs8 -inform PEM -outform PEM -in data1/data1.key -topk8 -nocrypt -v1 PBE-SHA1-3DES -out data1/data1_pkcs8.key
openssl req -new -key data1/data1_pkcs8.key -subj "/C=GB/L=London/O=test/CN=data1.opensearch.test.com" -out data1/data1.csr
echo 'subjectAltName=DNS:data1.opensearch.test.com' > data1/data1.ext
openssl x509 -req -in data1/data1.csr -CA root-ca.pem -CAkey root-ca.key -sha256 -out data1/data1.pem -days 800 -extfile data1/data1.ext

openssl genpkey -out dashboard/dashboard.key -algorithm RSA -pkeyopt rsa_keygen_bits:2048
openssl pkcs8 -inform PEM -outform PEM -in dashboard/dashboard.key -topk8 -nocrypt -v1 PBE-SHA1-3DES -out dashboard/dashboad_pkcs8.key
openssl req -new -key dashboard/dashboard_pkcs8.key -subj "/C=GB/L=London/O=test/CN=dashboard.opensearch.test.com" -out dashboard/dashboard.csr
echo 'subjectAltName=DNS:dashboard.opensearch.test.com' > dashboard/dashboard.ext
openssl x509 -req -in dashboard/dashboard.csr -CA root-ca.pem -CAkey root-ca.key -sha256 -out dashboard/dashboard.pem -days 800 -extfile dashboard/dashboard.ext

```

**Configuration manager1** :

```auto
cluster.name: opensearch-cluster

node.name: manager1.opensearch.test.com
network.host: 0.0.0.0
discovery.seed_hosts: [manager1.opensearch.test.com]
cluster.initial_cluster_manager_nodes: [manager1.opensearch.test.com]
node.roles: [cluster_manager]

plugins.security.disabled: false
plugins.security.allow_unsafe_democertificates: false
plugins.security.ssl.transport.pemcert_filepath: manager1.pem
plugins.security.ssl.transport.pemkey_filepath: manager1_pkcs8.key
plugins.security.ssl.transport.pemtrustedcas_filepath: root-ca.pem
plugins.security.ssl.transport.enforce_hostname_verification: false
plugins.security.ssl.http.enabled: true
plugins.security.ssl.http.pemcert_filepath: manager1.pem
plugins.security.ssl.http.pemkey_filepath: manager1_pkcs8.key
plugins.security.ssl.http.pemtrustedcas_filepath: root-ca.pem
plugins.security.allow_default_init_securityindex: true
plugins.security.authcz.admin_dn:
  - 'CN=admin.test.com,O=test,L=London,C=GB'
plugins.security.nodes_dn:
  - 'CN=manager1.opensearch.test.com,O=test,L=London,C=GB'
  - 'CN=data1.opensearch.test.com,O=test,L=London,C=GB'
  - 'CN=dashboard.opensearch.test.com,O=test,L=London,C=GB'

plugins.security.ssl.http.clientauth_mode: REQUIRE
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]
plugins.security.system_indices.enabled: true
plugins.security.system_indices.indices: [.plugins-ml-agent, .plugins-ml-config, .plugins-ml-connector,
  .plugins-ml-controller, .plugins-ml-model-group, .plugins-ml-model, .plugins-ml-task,
  .plugins-ml-conversation-meta, .plugins-ml-conversation-interactions, .plugins-ml-memory-meta,
  .plugins-ml-memory-message, .plugins-ml-stop-words, .opendistro-alerting-config,
  .opendistro-alerting-alert*, .opendistro-anomaly-results*, .opendistro-anomaly-detector*,
  .opendistro-anomaly-checkpoints, .opendistro-anomaly-detection-state, .opendistro-reports-*,
  .opensearch-notifications-*, .opensearch-notebooks, .opensearch-observability, .ql-datasources,
  .opendistro-asynchronous-search-response*, .replication-metadata-store, .opensearch-knn-models,
  .geospatial-ip2geo-data*, .plugins-flow-framework-config, .plugins-flow-framework-templates,
  .plugins-flow-framework-state]

```

**Configuration dashboard** :

```auto
opensearch.hosts: ["https://manager1.opensearch.test.com"]

opensearch.ssl.alwaysPresentCertificate: true
opensearch.ssl.verificationMode: full
opensearch.ssl.certificateAuthorities: ["/usr/share/opensearch-dashboards/config/root-ca.pem"]
opensearch.ssl.certificate: "/usr/share/opensearch-dashboards/config/dashboard.pem"
opensearch.ssl.key: "/usr/share/opensearch-dashboards/config/dashboard_pkcs8.key"

server.ssl.enabled: true
server.ssl.clientAuthentication: optional
server.ssl.certificateAuthorities: ["/usr/share/opensearch-dashboards/config/root-ca.pem"]
server.ssl.certificate: "/usr/share/opensearch-dashboards/config/dashboard.pem"
server.ssl.key: "/usr/share/opensearch-dashboards/config/dashboard_pkcs8.key"

opensearch.username: "kibanaserver"
opensearch.password: "some_passwd"
opensearch.requestHeadersWhitelist: [authorization, securitytenant]

opensearch_security.multitenancy.enabled: true
opensearch_security.multitenancy.tenants.preferred: [Private, Global]
opensearch_security.readonly_mode.roles: [kibana_read_only]
# Use this setting if you are running opensearch-dashboards without https
opensearch_security.cookie.secure: true
server.host: '0.0.0.0'
server.name: 'dashboard.opensearch.webscar.ru'

```

**Configuration nginx of manager1** :

```auto
upstream manager1 {
    server 127.0.0.1:9200;
}

server {
    listen 80;
    server_name manager1.opensearch.test.com;
    location / {
        return 301 https://$host$request_uri;
    }
}

server {
    listen 443 ssl;
    server_name manager1.opensearch.test.com;

    ssl_certificate /opt/certs/manager1/fullchain_manager1.pem; // cat manager1.pem root-ca.pem > fullchain_manager1.pem
    ssl_certificate_key /opt/certs/manager1/manager1.key;

    access_log /var/log/nginx/manager1.opensearch.test_access.log;
    error_log /var/log/nginx/manager1.opensearch.test_error.log;

    location / {
        proxy_pass https://manager1;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

    }
}

```

**Relevant Logs or Screenshots** :

`{"type":"log","@timestamp":"2024-04-23T11:08:21Z","tags":["error","opensearch","data"],"pid":1,"message":"[ConnectionError]: unable to get local issuer certificate"}`

---

<div class="post-metadata">

**Author:** ![Mantas](https://avatars.discourse-cdn.com/v4/letter/m/7bcc69/32.png) [@Mantas](https://forum.opensearch.org/u/Mantas)\
**Post date:** [April 23, 2024, 11:19am UTC](https://forum.opensearch.org/t/notsslrecordexception-not-an-ssl-tls-record/18998/2 "2024-04-23T11:19:04Z")

</div>

> [@Setplus](#):
>
> `opensearch.ssl.verificationMode: full`

Hi @Setplus,

Could you run a test with `opensearch.ssl.verificationMode` set to none:

**Configuration dashboard** :

`opensearch.ssl.verificationMode: none`

thanks,  
mj

---

<div class="post-metadata">

**Author:** ![Setplus](https://avatars.discourse-cdn.com/v4/letter/s/8dc957/32.png) [@Setplus](https://forum.opensearch.org/u/Setplus)\
**Post date:** [April 23, 2024, 11:32am UTC](https://forum.opensearch.org/t/notsslrecordexception-not-an-ssl-tls-record/18998/3 "2024-04-23T11:32:06Z")

</div>

Hi, @Mantas

I have changed value for `opensearch.ssl.verificationMode` from `full` to `none`, restart docker with dashboard and get this in logs:

`{"type":"log","@timestamp":"2024-04-23T11:30:36Z","tags":["error","opensearch","data"],"pid":1,"message":"[ResponseError]: Response Error"}`

---

<div class="post-metadata">

**Author:** ![Mantas](https://avatars.discourse-cdn.com/v4/letter/m/7bcc69/32.png) [@Mantas](https://forum.opensearch.org/u/Mantas)\
**Post date:** [April 23, 2024, 12:08pm UTC](https://forum.opensearch.org/t/notsslrecordexception-not-an-ssl-tls-record/18998/4 "2024-04-23T12:08:46Z")

</div>

Could you share the full error message?  
Thanks,  
mj

---

<div class="post-metadata">

**Author:** ![Setplus](https://avatars.discourse-cdn.com/v4/letter/s/8dc957/32.png) [@Setplus](https://forum.opensearch.org/u/Setplus)\
**Post date:** [April 23, 2024, 12:11pm UTC](https://forum.opensearch.org/t/notsslrecordexception-not-an-ssl-tls-record/18998/5 "2024-04-23T12:11:54Z")

</div>

@Mantas , of course!

```auto
{"type":"log","@timestamp":"2024-04-23T12:10:58Z","tags":["info","plugins-service"],"pid":1,"message":"Plugin \"dataSourceManagement\" has been disabled since the following direct or transitive dependencies are missing or disabled: [dataSource]"}
{"type":"log","@timestamp":"2024-04-23T12:10:58Z","tags":["info","plugins-service"],"pid":1,"message":"Plugin \"applicationConfig\" is disabled."}
{"type":"log","@timestamp":"2024-04-23T12:10:58Z","tags":["info","plugins-service"],"pid":1,"message":"Plugin \"cspHandler\" is disabled."}
{"type":"log","@timestamp":"2024-04-23T12:10:58Z","tags":["info","plugins-service"],"pid":1,"message":"Plugin \"dataSource\" is disabled."}
{"type":"log","@timestamp":"2024-04-23T12:10:58Z","tags":["info","plugins-service"],"pid":1,"message":"Plugin \"visTypeXy\" is disabled."}
{"type":"log","@timestamp":"2024-04-23T12:10:58Z","tags":["warning","config","deprecation"],"pid":1,"message":"\"cpu.cgroup.path.override\" is deprecated and has been replaced by \"ops.cGroupOverrides.cpuPath\""}
{"type":"log","@timestamp":"2024-04-23T12:10:58Z","tags":["warning","config","deprecation"],"pid":1,"message":"\"cpuacct.cgroup.path.override\" is deprecated and has been replaced by \"ops.cGroupOverrides.cpuAcctPath\""}
{"type":"log","@timestamp":"2024-04-23T12:10:58Z","tags":["warning","config","deprecation"],"pid":1,"message":"\"opensearch.requestHeadersWhitelist\" is deprecated and has been replaced by \"opensearch.requestHeadersAllowlist\""}
[agentkeepalive:deprecated] options.freeSocketKeepAliveTimeout is deprecated, please use options.freeSocketTimeout instead
{"type":"log","@timestamp":"2024-04-23T12:10:58Z","tags":["info","plugins-system"],"pid":1,"message":"Setting up [52] plugins: [usageCollection,opensearchDashboardsUsageCollection,opensearchDashboardsLegacy,mapsLegacy,share,opensearchUiShared,embeddable,legacyExport,expressions,data,securityAnalyticsDashboards,savedObjects,home,apmOss,searchRelevanceDashboards,reportsDashboards,dashboard,mlCommonsDashboards,visualizations,visTypeVega,visTypeTimeline,visTypeTable,visTypeMarkdown,visAugmenter,anomalyDetectionDashboards,alertingDashboards,visBuilder,tileMap,regionMap,customImportMapDashboards,inputControlVis,ganttChartDashboards,visualize,indexManagementDashboards,notificationsDashboards,management,indexPatternManagement,advancedSettings,console,dataExplorer,bfetch,charts,visTypeVislib,visTypeTimeseries,visTypeTagcloud,visTypeMetric,discover,savedObjectsManagement,securityDashboards,assistantDashboards,observabilityDashboards,queryWorkbenchDashboards]"}
[agentkeepalive:deprecated] options.freeSocketKeepAliveTimeout is deprecated, please use options.freeSocketTimeout instead
[agentkeepalive:deprecated] options.freeSocketKeepAliveTimeout is deprecated, please use options.freeSocketTimeout instead
[agentkeepalive:deprecated] options.freeSocketKeepAliveTimeout is deprecated, please use options.freeSocketTimeout instead
[agentkeepalive:deprecated] options.freeSocketKeepAliveTimeout is deprecated, please use options.freeSocketTimeout instead
[agentkeepalive:deprecated] options.freeSocketKeepAliveTimeout is deprecated, please use options.freeSocketTimeout instead
[agentkeepalive:deprecated] options.freeSocketKeepAliveTimeout is deprecated, please use options.freeSocketTimeout instead
[agentkeepalive:deprecated] options.freeSocketKeepAliveTimeout is deprecated, please use options.freeSocketTimeout instead
[agentkeepalive:deprecated] options.freeSocketKeepAliveTimeout is deprecated, please use options.freeSocketTimeout instead
[agentkeepalive:deprecated] options.freeSocketKeepAliveTimeout is deprecated, please use options.freeSocketTimeout instead
[agentkeepalive:deprecated] options.freeSocketKeepAliveTimeout is deprecated, please use options.freeSocketTimeout instead
[agentkeepalive:deprecated] options.freeSocketKeepAliveTimeout is deprecated, please use options.freeSocketTimeout instead
[agentkeepalive:deprecated] options.freeSocketKeepAliveTimeout is deprecated, please use options.freeSocketTimeout instead
[agentkeepalive:deprecated] options.freeSocketKeepAliveTimeout is deprecated, please use options.freeSocketTimeout instead
{"type":"log","@timestamp":"2024-04-23T12:10:58Z","tags":["info","savedobjects-service"],"pid":1,"message":"Waiting until all OpenSearch nodes are compatible with OpenSearch Dashboards before starting saved objects migrations..."}
{"type":"log","@timestamp":"2024-04-23T12:10:59Z","tags":["error","opensearch","data"],"pid":1,"message":"[ResponseError]: Response Error"}
{"type":"log","@timestamp":"2024-04-23T12:10:59Z","tags":["error","savedobjects-service"],"pid":1,"message":"Unable to retrieve version information from OpenSearch nodes."}

```

---

<div class="post-metadata">

**Author:** ![Mantas](https://avatars.discourse-cdn.com/v4/letter/m/7bcc69/32.png) [@Mantas](https://forum.opensearch.org/u/Mantas)\
**Post date:** [April 24, 2024, 12:09pm UTC](https://forum.opensearch.org/t/notsslrecordexception-not-an-ssl-tls-record/18998/6 "2024-04-24T12:09:25Z")

</div>

> [@Setplus](#):
>
> ` server_name manager1.opensearch.test.com;`

Hi @Setplus,

Can you please adding the port to your **nginx of manager1 config** :

```auto
server {
    listen 443 ssl;
    server_name manager1.opensearch.test.com:9200;

```

Best,  
mj

---

<div class="post-metadata">

**Author:** ![Setplus](https://avatars.discourse-cdn.com/v4/letter/s/8dc957/32.png) [@Setplus](https://forum.opensearch.org/u/Setplus)\
**Post date:** [April 24, 2024, 2:00pm UTC](https://forum.opensearch.org/t/notsslrecordexception-not-an-ssl-tls-record/18998/7 "2024-04-24T14:00:10Z")

</div>

Hi, @Mantas

Hm, docker with manager is hosted on 127.0.0.1:9200 and there is redirect in nginx from 80 to 127.0.0.1:9200 based on server\_name [manager1.opensearch.test.com](http://manager1.opensearch.test.com)

---

<div class="post-metadata">

**Author:** ![Mantas](https://avatars.discourse-cdn.com/v4/letter/m/7bcc69/32.png) [@Mantas](https://forum.opensearch.org/u/Mantas)\
**Post date:** [May 2, 2024, 11:19am UTC](https://forum.opensearch.org/t/notsslrecordexception-not-an-ssl-tls-record/18998/8 "2024-05-02T11:19:30Z")

</div>

Have you tried testing with out a proxy in between?

best,  
mj

---

<div class="post-metadata">

**Author:** ![Setplus](https://avatars.discourse-cdn.com/v4/letter/s/8dc957/32.png) [@Setplus](https://forum.opensearch.org/u/Setplus)\
**Post date:** [May 2, 2024, 1:20pm UTC](https://forum.opensearch.org/t/notsslrecordexception-not-an-ssl-tls-record/18998/9 "2024-05-02T13:20:38Z")

</div>

No, because the main idea is to setup the environment with Nginx as a proxy.

---

<div class="post-metadata">

**Author:** ![Mantas](https://avatars.discourse-cdn.com/v4/letter/m/7bcc69/32.png) [@Mantas](https://forum.opensearch.org/u/Mantas)\
**Post date:** [June 6, 2024, 12:17pm UTC](https://forum.opensearch.org/t/notsslrecordexception-not-an-ssl-tls-record/18998/10 "2024-06-06T12:17:04Z")

</div>

hi @Setplus,

Have you managed to progress on this?

The error indicates a connection issue that might be caused by the proxy set-up, I would test it without proxy for troubleshooting purposes.

> [@Setplus](#):
>
> `{"type":"log","@timestamp":"2024-04-23T12:10:59Z","tags":["error","savedobjects-service"],"pid":1,"message":"Unable to retrieve version information from OpenSearch nodes."}`

best,  
mj

---

<div class="post-metadata">

**Author:** ![Setplus](https://avatars.discourse-cdn.com/v4/letter/s/8dc957/32.png) [@Setplus](https://forum.opensearch.org/u/Setplus)\
**Post date:** [June 6, 2024, 3:23pm UTC](https://forum.opensearch.org/t/notsslrecordexception-not-an-ssl-tls-record/18998/11 "2024-06-06T15:23:54Z")

</div>

Hi, @Mantas !

Thanks for the interest to my problem!

Unfortunately, i have not managed to progress on it.

> The error indicates a connection issue that might be caused by the proxy set-up, I would test it without proxy for troubleshooting purposes.

Do you mean that i should remove nginx and export all ports from dockers to the real IP, not only to localhost?

---

<div class="post-metadata">

**Author:** ![Mantas](https://avatars.discourse-cdn.com/v4/letter/m/7bcc69/32.png) [@Mantas](https://forum.opensearch.org/u/Mantas)\
**Post date:** [June 6, 2024, 4:00pm UTC](https://forum.opensearch.org/t/notsslrecordexception-not-an-ssl-tls-record/18998/12 "2024-06-06T16:00:15Z")

</div>

Before that, would you mind executing the below and sharing the output:

```auto
curl --insecure -u admin:admin https://manager1.opensearch.test.com:9200

```

Thanks,  
mj

---

<div class="post-metadata">

**Author:** ![Mantas](https://avatars.discourse-cdn.com/v4/letter/m/7bcc69/32.png) [@Mantas](https://forum.opensearch.org/u/Mantas)\
**Post date:** [June 6, 2024, 4:03pm UTC](https://forum.opensearch.org/t/notsslrecordexception-not-an-ssl-tls-record/18998/13 "2024-06-06T16:03:14Z")

</div>

> [@Setplus](#):
>
> **data1**

Moreover could you share your **data1** node configuration too.

---

<div class="post-metadata">

**Author:** ![Setplus](https://avatars.discourse-cdn.com/v4/letter/s/8dc957/32.png) [@Setplus](https://forum.opensearch.org/u/Setplus)\
**Post date:** [June 11, 2024, 10:37am UTC](https://forum.opensearch.org/t/notsslrecordexception-not-an-ssl-tls-record/18998/14 "2024-06-11T10:37:05Z")

</div>

That’s impossible, because 9200 port is not allowed for input communication because of firewall rules. Only 80 and 443 are allowed ports. And 9300 for TLS communication but only from data1 node IP.

---

<div class="post-metadata">

**Author:** ![Setplus](https://avatars.discourse-cdn.com/v4/letter/s/8dc957/32.png) [@Setplus](https://forum.opensearch.org/u/Setplus)\
**Post date:** [June 11, 2024, 10:39am UTC](https://forum.opensearch.org/t/notsslrecordexception-not-an-ssl-tls-record/18998/15 "2024-06-11T10:39:59Z")

</div>

Of course!

```auto
---
cluster.name: opensearch-cluster

# Bind to all interfaces because we don't know what IP address Docker will assign to us.
node.name: data1.opensearch.test.com
network.host: 0.0.0.0
discovery.seed_hosts: [manager1.opensearch.test.com]
cluster.initial_cluster_manager_nodes: [manager1.opensearch.test.com]
node.roles: [data,ingest]
# # minimum_master_nodes need to be explicitly set when bound on a public IP
# # set to 1 to allow single node clusters
# discovery.zen.minimum_master_nodes: 1

# Setting network.host to a non-loopback address enables the annoying bootstrap checks. "Single-node" mode disables them again.
# discovery.type: single-node

plugins.security.disabled: false
plugins.security.ssl.transport.pemcert_filepath: data1.pem
plugins.security.ssl.transport.pemkey_filepath: data1_pkcs8.key
plugins.security.ssl.transport.pemtrustedcas_filepath: root-ca.pem
plugins.security.ssl.transport.enforce_hostname_verification: false
plugins.security.ssl.http.enabled: true
plugins.security.ssl.http.pemcert_filepath: data1.pem
plugins.security.ssl.http.pemkey_filepath: data1_pkcs8.key
plugins.security.ssl.http.pemtrustedcas_filepath: root-ca.pem
plugins.security.allow_unsafe_democertificates: false
plugins.security.allow_default_init_securityindex: true
#plugins.security.authcz.admin_dn:
# - 'CN=admin.test.com,O=webscar,L=London,C=RU'
plugins.security.nodes_dn:
  - 'CN=manager1.opensearch.test.com,O=webscar,L=London,C=RU'
  - 'CN=data1.opensearch.test.com,O=webscar,L=London,C=RU'
  - 'CN=dashboard.opensearch.test.com,O=webscar,L=London,C=RU'
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]
plugins.security.system_indices.enabled: true
plugins.security.system_indices.indices: [.plugins-ml-agent, .plugins-ml-config, .plugins-ml-connector,
  .plugins-ml-controller, .plugins-ml-model-group, .plugins-ml-model, .plugins-ml-task,
  .plugins-ml-conversation-meta, .plugins-ml-conversation-interactions, .plugins-ml-memory-meta,
  .plugins-ml-memory-message, .plugins-ml-stop-words, .opendistro-alerting-config,
  .opendistro-alerting-alert*, .opendistro-anomaly-results*, .opendistro-anomaly-detector*,
  .opendistro-anomaly-checkpoints, .opendistro-anomaly-detection-state, .opendistro-reports-*,
  .opensearch-notifications-*, .opensearch-notebooks, .opensearch-observability, .ql-datasources,
  .opendistro-asynchronous-search-response*, .replication-metadata-store, .opensearch-knn-models,
  .geospatial-ip2geo-data*, .plugins-flow-framework-config, .plugins-flow-framework-templates,
  .plugins-flow-framework-state]
node.max_local_storage_nodes: 3

```

---

<div class="post-metadata">

**Author:** ![Mantas](https://avatars.discourse-cdn.com/v4/letter/m/7bcc69/32.png) [@Mantas](https://forum.opensearch.org/u/Mantas)\
**Post date:** [June 12, 2024, 11:39am UTC](https://forum.opensearch.org/t/notsslrecordexception-not-an-ssl-tls-record/18998/16 "2024-06-12T11:39:24Z")

</div>

Hi @Setplus, can you add the same rule to your firewall for 9200 as 9300 and test it again?

Thanks,  
mj

---

<div class="post-metadata">

**Author:** ![Setplus](https://avatars.discourse-cdn.com/v4/letter/s/8dc957/32.png) [@Setplus](https://forum.opensearch.org/u/Setplus)\
**Post date:** [June 13, 2024, 10:35am UTC](https://forum.opensearch.org/t/notsslrecordexception-not-an-ssl-tls-record/18998/17 "2024-06-13T10:35:26Z")

</div>

Hi, @Mantas !  
Sure!

If i execute the following command:

`curl -k -u admin:admin https://manager1.opensearch.test.com:9200`

console is pending and nothing happens.

But if i execute the same command but without port:

`curl -k -u admin:admin https://manager1.opensearch.test.com`

i see these lines in logs of manager1-docker

`[WARN][o.o.s.a.BackendRegistry] [manager1] Authentication finally failed for admin from 172.19.0.1:55928`

---

<div class="post-metadata">

**Author:** ![Mantas](https://avatars.discourse-cdn.com/v4/letter/m/7bcc69/32.png) [@Mantas](https://forum.opensearch.org/u/Mantas)\
**Post date:** [July 1, 2024, 12:51pm UTC](https://forum.opensearch.org/t/notsslrecordexception-not-an-ssl-tls-record/18998/18 "2024-07-01T12:51:34Z")

</div>

> [@Setplus](#):
>
> If i execute the following command:
> 
> `curl -k -u admin:admin https://manager1.opensearch.test.com:9200`
> 
> console is pending and nothing happens.

Hi @Setplus,

Is this after allowing traffic to port 9200 on your firewall?

best,  
mj

---

<div class="post-metadata">

**Author:** ![Setplus](https://avatars.discourse-cdn.com/v4/letter/s/8dc957/32.png) [@Setplus](https://forum.opensearch.org/u/Setplus)\
**Post date:** [July 2, 2024, 11:24am UTC](https://forum.opensearch.org/t/notsslrecordexception-not-an-ssl-tls-record/18998/19 "2024-07-02T11:24:43Z")

</div>

Hi @Mantas ,

Yes.

---

<div class="post-metadata">

**Author:** ![Mantas](https://avatars.discourse-cdn.com/v4/letter/m/7bcc69/32.png) [@Mantas](https://forum.opensearch.org/u/Mantas)\
**Post date:** [July 10, 2024, 4:06pm UTC](https://forum.opensearch.org/t/notsslrecordexception-not-an-ssl-tls-record/18998/20 "2024-07-10T16:06:59Z")

</div>

> [@Setplus](#):
>
> [WARN][o.o.s.a.BackendRegistry] [manager1] Authentication finally failed for admin from 172.19.0.1: **55928**

I would suggest to test it with out proxy.

best,  
mj

[Next page](https://forum.opensearch.org/t/notsslrecordexception-not-an-ssl-tls-record/18998.md?page=2)
