You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2018/10/17 03:33:22 UTC

[GitHub] massakam commented on issue #2799: Receiving "Connection Already Closed Error on Creating Producer"

massakam commented on issue #2799: Receiving "Connection Already Closed Error on Creating Producer"
URL: https://github.com/apache/pulsar/issues/2799#issuecomment-430477734
 
 
   @MrThreepwood I think you need to set enableTls to true.
   
   ```diff
    messageBus = PulsarClient.builder()
                    .serviceUrl(messageBusUrl)
   +                .enableTls(true)
                    .tlsTrustCertsFilePath("/Users/josh/Documents/myriadmobile/kernel/translator-mono/core/src/main/resources/pulsar-ca-cert.pem")
                    .authentication("org.apache.pulsar.client.impl.auth.AuthenticationTls",
                            "tlsCertFile:/Users/josh/Documents/myriadmobile/kernel/translator-mono/core/src/main/resources/pulsar-public.pem,tlsKeyFile:/Users/josh/Documents/myriadmobile/kernel/translator-mono/core/src/main/resources/pulsar-private.pem")
                    .build()
   ```
   
   This configuration will be unnecessary in 2.2.0 or later.
   cf. https://github.com/apache/pulsar/pull/2315

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services