Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-10447

thin nodejs: can't execute example AuthTlsExample.js

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Not A Bug
    • Affects Version/s: 2.7
    • Fix Version/s: None
    • Component/s: thin client
    • Labels:
      None
    • Ignite Flags:
      Docs Required

      Description

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

      using latest CI build

      Output:

      $ 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
      

      config.xml

      <?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>
      

        Attachments

          Activity

            People

            • Assignee:
              ekaterina.vergizova ekaterina.vergizova
              Reporter:
              spilschikov Stepan Pilschikov
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: