Alex Levin
2014-08-15 01:05:24 UTC
Hi, I am trying to run DTLSClientTest and DTLSServerTest. The first one has
this comment:
Please refer to GnuTLSSetup.txt or OpenSSLSetup.txt, and x509-*.pem files
in this package for
help configuring an external DTLS server.
The second one has this:
Please refer to GnuTLSSetup.txt or OpenSSLSetup.txt, and x509-*.pem files
in this package for
help configuring an external DTLS client.
I could not find GnuTLSSetup.txt or OpenSSLSetup.txt.
I went to
http://www.gnutls.org/manual/html_node/gnutls_002dserv-Invocation.html
and followed instructions to generate x509-*.pem files.
I set DEBUG = true in TlsTestConfig.
I started DTLSServerTest and then DTLSClientTest and got
Exception in thread "main" org.bouncycastle.crypto.tls.
TlsFatalAlert
at org.bouncycastle.crypto.tls.DTLSServerProtocol.accept(Unknown
Source)
at
org.bouncycastle.crypto.tls.test.DTLSServerTest.main(DTLSServerTest.java:54)
and in DTLSClientTest
Exception in thread "main" java.net.PortUnreachableException: ICMP Port
Unreachable
Started test server with nc -l -u -p 5556 and client nc -u 127.0.0.1 5556
and did not get any problem.
Any help to get DTLSClientTest and DTLSServerTest running will be greatly
appreciated.
Alex.
this comment:
Please refer to GnuTLSSetup.txt or OpenSSLSetup.txt, and x509-*.pem files
in this package for
help configuring an external DTLS server.
The second one has this:
Please refer to GnuTLSSetup.txt or OpenSSLSetup.txt, and x509-*.pem files
in this package for
help configuring an external DTLS client.
I could not find GnuTLSSetup.txt or OpenSSLSetup.txt.
I went to
http://www.gnutls.org/manual/html_node/gnutls_002dserv-Invocation.html
and followed instructions to generate x509-*.pem files.
I set DEBUG = true in TlsTestConfig.
I started DTLSServerTest and then DTLSClientTest and got
Exception in thread "main" org.bouncycastle.crypto.tls.
TlsFatalAlert
at org.bouncycastle.crypto.tls.DTLSServerProtocol.accept(Unknown
Source)
at
org.bouncycastle.crypto.tls.test.DTLSServerTest.main(DTLSServerTest.java:54)
and in DTLSClientTest
Exception in thread "main" java.net.PortUnreachableException: ICMP Port
Unreachable
Started test server with nc -l -u -p 5556 and client nc -u 127.0.0.1 5556
and did not get any problem.
Any help to get DTLSClientTest and DTLSServerTest running will be greatly
appreciated.
Alex.