eclipse-archived / californium.core

Californium project
86 stars 69 forks source link

Illegal record content type error while using Cf-secure project #20

Closed kuriakosejohn closed 8 years ago

kuriakosejohn commented 9 years ago

I always get the following error while using cf-secure, was trying to setup a CoAP server with DTLS

14 WARNING [Record]: Received illegal record content type: 68 - (ch.ethz.inf.vs.scandium.dtls.Record.java:192) fromByteArray() in thread DTLS-Receiver0.0.0.0/0.0.0.0:5683 at (2014-09-28 13:53:13)

jvermillard commented 9 years ago

Which dtls client do you use?

kuriakosejohn commented 9 years ago

I tried with the examples "cf-helloworld-client" and "ExampleDTLSClient" from eclipse project.

Is there any working example available?

Thanks and Regards, John Kuriakose.

On Sunday, September 28, 2014 7:46 PM, Julien Vermillard notifications@github.com wrote:

Which dtls client do you use? — Reply to this email directly or view it on GitHub.

jvermillard commented 9 years ago

you should try the org.eclipse.californium* versions

kuriakosejohn commented 9 years ago

Yes, I used https://github.com/eclipse/californium/tree/master/cf-helloworld-client

with URI: coaps://localhost

Thanks and Regards, John Kuriakose.

On Sunday, September 28, 2014 8:34 PM, Julien Vermillard notifications@github.com wrote:

you should try the org.eclipse.californium* versions — Reply to this email directly or view it on GitHub.

kuriakosejohn commented 9 years ago

Issue Solved!. setDefaultSecureEndpoint() was not getting called for secure URI's(coaps) in "cf-helloworld-client" sample project.

jvermillard commented 9 years ago

cool, maybe we need to fix the example?

kuriakosejohn commented 9 years ago

Yes, then it will be easier for someone trying to setup secured server/client.

sophokles73 commented 8 years ago

The ''cf-secure'' module contains examples for both a secure client as well as a secure server which illustrate how to set up security at both ends.