Uploaded image for project: 'ENTSBT'
  1. ENTSBT
  2. ENTSBT-1187

vertx-amqp-starter does not detect client TruestStore

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Critical Critical
    • None
    • 2.5.8.DR5, 2.5.10.GA
    • None
    • None
    • False
    • False

      Using dev.snodrop:vertx-spring-boot-starter-amqp, and connecting it to AMQ service which is protected by TLS. Using custom keystore and truststore.

      Truststore configuration:

      vertx.amqp.jksTrustStore.path=client.ts
      vertx.amqp.jksTrustStore.password=XXXXX
      vertx.amqp.jksTrustStore.enabled=true
      

      Truststore is placed in resources dir, but the vertx searches for it in /tmp/vertx-cache dir. Which results in exception:

      io.vertx.core.VertxException: io.vertx.core.file.FileSystemException: java.nio.file.NoSuchFileException: /tmp/vertx-cache-8c293a8f-2c6e-4cc2-8444-ee156ccce6b2/client.ts
      	at io.vertx.core.net.impl.SSLHelper.getContext(SSLHelper.java:467) ~[vertx-core-4.1.5.redhat-00002.jar!/:4.1.5.redhat-00002]
      	at io.vertx.core.net.impl.SSLHelper.getContext(SSLHelper.java:456) ~[vertx-core-4.1.5.redhat-00002.jar!/:4.1.5.redhat-00002]
      	at io.vertx.core.net.impl.SSLHelper.validate(SSLHelper.java:494) ~[vertx-core-4.1.5.redhat-00002.jar!/:4.1.5.redhat-00002]
      	at io.vertx.core.net.impl.NetClientImpl.<init>(NetClientImpl.java:84) ~[vertx-core-4.1.5.redhat-00002.jar!/:4.1.5.redhat-00002]
      	at io.vertx.core.impl.VertxImpl.createNetClient(VertxImpl.java:295) ~[vertx-core-4.1.5.redhat-00002.jar!/:4.1.5.redhat-00002
      ....
      

      This issue does not raise if application is run by `spring-boot:run`, but does arise when application is run form .jar file.

              antcosta Antonio Costa (Inactive)
              mocenas@redhat.com Martin Ocenas
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: