Client JavaScript SSL connection difficulties

Hi everyone,

I installed the npm node-eventstore-client and tried to adapt the example code (which can be found here https://www.npmjs.com/package/node-eventstore-client ) to be able to establish an SSL connection between the client and a 3-node cluster. (Therefore, I changed the connection settings useSslConnection and validateServer to true and specified the SslTargethost). The cluster is configured via a config file

ExtIp: 0.0.0.0
IntHttpPrefixes: http://:2112/
ExtHttpPrefixes: http://
:2113/
AddInterfacePrefixes: false
RunProjections: All
CertificateFile: /etc/eventstore/eventstore.p12

and via the following environment variables.

EVENTSTORE_MEM_DB: 1
EVENTSTORE_ENV: production
EVENTSTORE_CLUSTER_DNS: eventstore.cluster.local
EVENTSTORE_CLUSTER_SIZE: 3
EVENTSTORE_INT_IP: 172.18.0.122
EVENTSTORE_USE_INTERNAL_SSL: “True”
EVENTSTORE_DISABLE_INSECURE_TCP: “False”
EVENTSTORE_INT_SECURE_TCP_PORT: 1112
EVENTSTORE_EXT_SECURE_TCP_PORT: 1115
EVENTSTORE_INT_TCP_PORT: 0
EVENTSTORE_EXT_TCP_PORT: 0

However, if I execute the code above, it seems that there is no connection established. I get the following logs:

eventstore1 | TcpConnectionSsl::InitClientSocket(172.18.0.1:37494, L172.18.0.120:1115)
eventstore1 | [00001,18,14:50:55.399] External TCP connection accepted: [Secure, 172.18.0.1:37494, L172.18.0.120:1115, {d131051e-3083-4617-980f-05b362ea74ed}].
eventstore1 | [00001,24,14:50:55.437] [S172.18.0.1:37494, L172.18.0.120:1115]
eventstore1 | [00001,24,14:50:55.437] Cipher: Aes256 strength 256
eventstore1 | [00001,24,14:50:55.437] Hash: Sha1 strength 160
eventstore1 | [00001,24,14:50:55.437] Key exchange: RsaKeyX strength 2048
eventstore1 | [00001,24,14:50:55.437] Protocol: Tls
eventstore1 | [00001,24,14:50:55.437] Is authenticated: True as server? True
eventstore1 | [00001,24,14:50:55.437] IsSigned: True
eventstore1 | [00001,24,14:50:55.437] Is Encrypted: True
eventstore1 | [00001,24,14:50:55.437] Can read: True, write True
eventstore1 | [00001,24,14:50:55.437] Can timeout: True
eventstore1 | [00001,24,14:50:55.437] Certificate revocation list checked: True
eventstore1 | [00001,24,14:50:55.437] Local certificate was issued to E=redacted, CN=eventstore.cluster.local, OU=redacted, O=redacted, C=DE and is valid from 10/31/2018 07:25:40 until 10/31/2019 07:25:40.
eventstore1 | [00001,24,14:50:55.437] Remote certificate is null.
eventstore1 | [00001,18,14:50:55.441] ES TcpConnectionSsl closed [14:50:55.441: N172.18.0.1:37494, L172.18.0.120:1115, {d131051e-3083-4617-980f-05b362ea74ed}]:Received bytes: 0, Sent bytes: 0
eventstore1 | [00001,18,14:50:55.441] ES TcpConnectionSsl closed [14:50:55.441: N172.18.0.1:37494, L172.18.0.120:1115, {d131051e-3083-4617-980f-05b362ea74ed}]:Send calls: 0, callbacks: 0
eventstore1 | [00001,18,14:50:55.441] ES TcpConnectionSsl closed [14:50:55.441: N172.18.0.1:37494, L172.18.0.120:1115, {d131051e-3083-4617-980f-05b362ea74ed}]:Receive calls: 1, callbacks: 1
eventstore1 | [00001,18,14:50:55.441] ES TcpConnectionSsl closed [14:50:55.441: N172.18.0.1:37494, L172.18.0.120:1115, {d131051e-3083-4617-980f-05b362ea74ed}]:Close reason: [Success] Socket closed.
eventstore1 | [00001,18,14:50:55.441] Connection ‘external-secure’ [172.18.0.1:37494, {d131051e-3083-4617-980f-05b362ea74ed}] closed: Success.
eventstore1 | [00001,19,14:50:55.441] Lost connection from 172.18.0.1:37494

Does somebody know what might be wrong? Thanks in advance!

Anneke