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

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

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

rodneyosodo opened this issue Jan 3, 2024 · 3 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

@1998-felix
Copy link
Contributor

DTLS termination will be carried out on mproxy and is handled by absmach/mproxy#60

@dborovcanin dborovcanin modified the milestones: S2, S3 Apr 17, 2024
@dborovcanin dborovcanin modified the milestones: S3, S4 Apr 30, 2024
@1998-felix 1998-felix linked a pull request May 7, 2024 that will close this issue
@dborovcanin
Copy link
Collaborator

Blocked by absmach/mproxy#60.

@dborovcanin dborovcanin modified the milestones: S4, S5 May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In Progress
Development

Successfully merging a pull request may close this issue.

4 participants