Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to test TCP communication over TLS #34

Open
arjunpidugu642 opened this issue Jun 11, 2019 · 2 comments
Open

Not able to test TCP communication over TLS #34

arjunpidugu642 opened this issue Jun 11, 2019 · 2 comments

Comments

@arjunpidugu642
Copy link

arjunpidugu642 commented Jun 11, 2019

Hi,

Can you please provide us clear steps to test TCP over TLS.

I have tried by loading certificates which are available but with that syslog server is not running and getting below error. I know we get below error when server is not running on particluar address and port

InetAddress of the Syslog Server have changed, create a new connection
       Exception in thread "main" java.net.ConnectException: Exception connecting to /127.0.0.1:6514

I have tried by setting another certificate but getting below error

Exception in thread "main" javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty

Where is provision to configure SSL certs in given class TcpSyslogMessageSender.?

I need to complete testing TCP over TLS to incorporate this syslog-java-client into my application.

Thanks and Regards,
Arjun

@arjunpidugu642
Copy link
Author

Hi cyrille-leclerc,

Can you please help me in providing steps to test TCP over TLS.

@cyrille-leclerc
Copy link
Contributor

Hello @arjunpidugu642 .

We are continuously testing TCP SSL messages thanks the test infrastructure that our friends of SolarWind kindly offer us with a free PaperTrail App account.
Our test is https://github.com/CloudBees-community/syslog-java-client/blob/syslog-java-client-1.1.7/src/test/java/com/cloudbees/syslog/sender/TcpSyslogMessageSenderTest.java#L73

Searching on Google for InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty I see that you may have a problem with the truststore you have configured:

What was the stacktrace for the first exception you got? The message Exception connecting to /127.0.0.1:6514 is not much detailed, there is probably a cause.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants