-
-
Notifications
You must be signed in to change notification settings - Fork 116
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
Support for DTLS certificate export #103
Comments
I've got everything in the DTLS figured out, now need to find out how to do this in coap. conn, err := listener.Accept()
util.Check(err)
// defer conn.Close() // TODO: graceful shutdown
dtlsConn := conn.(*dtls.Conn)
cert := dtlsConn.RemoteCertificate()
fmt.Println("Remote certificate: \n", cert) I'm currently trying to get to know the go-coap codebase a little bit better. @jkralik do you have any pointers to get me started? I'm thinking to add a a field for BTW: I'm the same user as @vidavidorra , but am currently in the process of changing that to an organisation so from now on will be using this user. |
I couldn't find this to be supported ATM, but how difficult would it be to support this or is this already supported?
I'm also still figuring out in pion/dtls how i can export certificates, so once that is figured out, this ticket should become more specific. Nonetheless, I figured creating a ticket here to see if anyone has done anything similar, and get the ball rolling once I've figured out how to export the certificate from pion/dtls.
After a fist look (and I'm not sure whether this is indeed right until the dtls is figured out) it might mean that the
dtls.Conn
needs to be exposed somehow fromcoap.ListenAndServeDTLS
.The text was updated successfully, but these errors were encountered: