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

Bug: CoAP with TLS doesn't Support UDP #1963

Closed
rodneyosodo opened this issue Jan 3, 2024 · 4 comments · May be fixed by #2222
Closed

Bug: CoAP with TLS doesn't Support UDP #1963

rodneyosodo opened this issue Jan 3, 2024 · 4 comments · May be fixed by #2222
Assignees
Milestone

Comments

@rodneyosodo
Copy link
Member

What were you trying to achieve?

Test coap server with TLS i.e providing certificate and key

What are the expected results?

To work with TLS

What are the received results?

cannot create new tls listener: cannot create new net tcp listener: unknown network udp

Steps To Reproduce

Provide certificate and key when starting coap server

In what environment did you encounter the issue?

main branch

Additional information you deem important

https://github.com/absmach/magistrala/blob/ff12f7fca35534a2b012ed10d320b58ed13eb46a/internal/server/coap/coap.go#L58C1-L60C6

go func() {
	errCh <- gocoap.ListenAndServeTCPTLS("udp", s.Address, tlsConfig, s.handler)
}()

This works when the network is TCP and not UDP

@rodneyosodo rodneyosodo added the bug label Jan 3, 2024
@dborovcanin dborovcanin transferred this issue from absmach/magistrala-old Jan 10, 2024
@drasko
Copy link
Contributor

drasko commented Feb 15, 2024

@dborovcanin @1998-felix can someone please take a look at this issue

@felixgateru
Copy link
Contributor

DTLS termination will be carried out on mproxy and is handled by https://github.com/absmach/mproxy/pull/60

@dborovcanin
Copy link
Collaborator

Blocked by https://github.com/absmach/mproxy/pull/60.

@dborovcanin dborovcanin modified the milestones: S4, S5 May 15, 2024
@felixgateru felixgateru moved this from In Progress to Todo in SuperMQ Jun 5, 2024
@dborovcanin dborovcanin modified the milestones: S5, 0.15.0 Jun 12, 2024
@dborovcanin dborovcanin moved this from ☑ Todo to 🩺 Review and testing in SuperMQ Jun 12, 2024
@arvindh123 arvindh123 moved this from 🩺 Review and testing to 🛑 Blocked in SuperMQ Jun 17, 2024
@dborovcanin dborovcanin removed this from the 0.15.0 milestone Jul 10, 2024
@dborovcanin dborovcanin added this to the v0.16.0 milestone Jul 10, 2024
@arvindh123 arvindh123 moved this from 🛑 Blocked to 🚧 In Progress in SuperMQ Jul 18, 2024
@felixgateru felixgateru moved this from 🚧 In Progress to ⛏ Backlog in SuperMQ Jul 26, 2024
@rodneyosodo
Copy link
Member Author

@github-project-automation github-project-automation bot moved this from ⛏ Backlog to ✅ Done in SuperMQ Aug 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: ✅ Done
Development

Successfully merging a pull request may close this issue.

4 participants