[ 
https://issues.apache.org/jira/browse/IGNITE-10447?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Stepan Pilschikov updated IGNITE-10447:
---------------------------------------
    Description: 
Trying to run script from nodejs/examples/AuthTlsExample.js but connection 
failed

using latest  [CI 
build|https://ci.ignite.apache.org/viewLog.html?buildId=2410261&buildTypeId=Releases_NightlyRelease_ObsoleteApacheIgniteNightlyReleaseAssembleBinaries&tab=artifacts]

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}

  was:
Trying to run script from nodejs/examples/AuthTlsExample.js but connection 
failed

using latest nightly build from ci.ignite.apache.org

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}


> 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
>            Priority: Major
>
> Trying to run script from nodejs/examples/AuthTlsExample.js but connection 
> failed
> using latest  [CI 
> build|https://ci.ignite.apache.org/viewLog.html?buildId=2410261&buildTypeId=Releases_NightlyRelease_ObsoleteApacheIgniteNightlyReleaseAssembleBinaries&tab=artifacts]
> 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)

Reply via email to