Stepan Pilschikov created IGNITE-10447:
------------------------------------------
Summary: thin nodejs: can't execute example AuthTlsExample.js
Key: IGNITE-10447
URL:
https://issues.apache.org/jira/browse/IGNITE-10447 Project: Ignite
Issue Type: Bug
Components: thin client
Affects Versions: 2.7
Reporter: Stepan Pilschikov
Trying to run script from nodejs/examples/AuthTlsExample.js but connection failed
Output:
{code}
$ ignite/modules/platforms/nodejs/examples$ node AuthTlsExample.js
Client is stopped
[localhost:10800] Connection failed: Error: Client network socket disconnected before secure TLS connection was established
ERROR: [localhost:10800] Connection failed: Error: Client network socket disconnected before secure TLS connection was established
{code}
config.xml
{code}
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="
http://www.springframework.org/schema/beans"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
<bean id="cfg" class="org.apache.ignite.configuration.IgniteConfiguration">
<property name="sslContextFactory">
<bean class="org.apache.ignite.ssl.SslContextFactory">
<property name="keyStoreFilePath" value="/ignite/modules/platforms/nodejs/examples/certs/keystore.jks"/>
<property name="keyStorePassword" value="123456"/>
<property name="trustStoreFilePath" value="/ignite/modules/platforms/nodejs/examples/certs/truststore.jks"/>
<property name="trustStorePassword" value="123456"/>
</bean>
</property>
</bean>
</beans>
{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)