-2

1/ 现在,我想让 libcoap 客户端连接到 coaps 服务器,但它找不到 coaps 服务器 2/ 所以,我需要一个带有 psk 的 coaps 服务器,谁能给我?

我有 CoAP (libcoap) 的实现和 DTLS (tinyDTLS) 的实现。我想让 libcoap 客户端连接到 coaps 服务器

我将不胜感激任何建议。

4

2 回答 2

0

您可以使用Eclipse Californium来启动您自己的基于 DTLS 的 CoAP 服务器。查看源存储库中的 DTLS 示例,这应该可以帮助您入门。

或者,您可以连接到位于 californium.eclipse.org:5684 的 Eclipse Californium 沙箱 CoAP 服务器。

以下是使用 openssl s_client 工具的方法:

openssl s_client -dtls1_2 -psk_identity password -psk 736573616D65 -connect californium.eclipse.org:5684
于 2019-02-21T13:56:13.470 回答
0

您可以像这样在本地测试 coaps 连接

$ ./coap-server -A ::1 -k 1234 &
$ ./coap-client 'coaps://[::1]/' -k 1234 -u CoAP
于 2020-02-27T13:25:32.493 回答