How to connect using tls ? #1275
-
| Hi guys, I'm having trouble connecting java client to server. The code below is C# code that i Used to connect, but now im trying to connect using java but no luck. Whats the equivalent java code, below code not working, it throws -> Connection refused: getsockopt?  | 
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            ghostidentity
          
      
      
        Feb 15, 2025 
      
    
    Replies: 1 comment 1 reply
-
| I figured it out, i was using incorrect method -> AuthHandler authHandler = Nats.credentials(JWT, SEED); as looks for file. | 
Beta Was this translation helpful? Give feedback.
                  
                    1 reply
                  
                
            
      Answer selected by
        ghostidentity
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
I figured it out, i was using incorrect method -> AuthHandler authHandler = Nats.credentials(JWT, SEED); as looks for file.