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

Certificate based DTLS client-server connection over CoAP #46

Open
nishantrana opened this issue May 21, 2018 · 5 comments
Open

Certificate based DTLS client-server connection over CoAP #46

nishantrana opened this issue May 21, 2018 · 5 comments

Comments

@nishantrana
Copy link

I need help to implement Certificate based security between client and server. Currently in your library only supports PSK based DTLS but we need Certificate based DTLS. Please let me know how I can do that.

@jimsch
Copy link
Collaborator

jimsch commented May 21, 2018

At the moment you can't. Are you looking at just doing self-signed certificates or are you doing full trust chains?

@nishantrana
Copy link
Author

Case I am following

I have one Root self signed certificate and on based of that I have created Client and Server certificate. CoAP Client & Server will use public key for handshake of there self signed certificates.

So what approach I should follow to establish DTLS based communication using your library?

@jimsch
Copy link
Collaborator

jimsch commented May 22, 2018

As I said, at the moment you can't. I am trying to think about how things might work but currently only PSK can be supported. To change this requires modifications to the server and client callback code as well as trying to figure out who should be doing the trust decisions and where they should be done. Given that how certificate validation tends to be very application specific for a lot of things that needs to be pushed to the client code out of the library. The problem is where and how the pushing is done and how the result is returned back to the library code.

@jimsch
Copy link
Collaborator

jimsch commented Jun 3, 2018

There is now - only in the tls_certs branch in my repro - a set of events that will be triggered for events where certificate could would need to be supported. Please look and see if that would solve your needs.

@srberard
Copy link

srberard commented Feb 3, 2023

I'm looking to do something similar to what @nishantrana mentions above. Has anyone been able to make DTLS work with x.509 certs?

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

3 participants