简体   繁体   English

CoAPS Server,可以使用哪个coaps服务器

[英]CoAPS Server, which coaps server can be used

1/ now, i want make libcoap client connect to a coaps server, but it cannot find a coaps server 2/ so, i neened a coaps server with psk, who can give it to me? 1/ 现在,我想让 libcoap 客户端连接到 coaps 服务器,但它找不到 coaps 服务器 2/ 所以,我需要一个带有 psk 的 coaps 服务器,谁能给我?

I have implementation of CoAP (libcoap), and implementation of DTLS (tinyDTLS).我有 CoAP (libcoap) 的实现和 DTLS (tinyDTLS) 的实现。 I want make libcoap client connect to a coaps server我想让 libcoap 客户端连接到 coaps 服务器

I will be grateful for the any advice.我将不胜感激任何建议。

You can use Eclipse Californium to start up your own DTLS based CoAP server.您可以使用Eclipse Californium来启动您自己的基于 DTLS 的 CoAP 服务器。 Take a look at the DTLS example in the source repository , that should get you started.查看源存储库中的DTLS 示例,这应该会让您入门。

Alternatively, you can connect to the Eclipse Californium sandbox CoAP server at californium.eclipse.org:5684.或者,您可以连接到位于 californium.eclipse.org:5684 的 Eclipse Californium 沙箱 CoAP 服务器。

Here's how to do that using the openssl s_client tool:以下是使用 openssl s_client 工具执行此操作的方法:

openssl s_client -dtls1_2 -psk_identity password -psk 736573616D65 -connect californium.eclipse.org:5684

You can test coaps connection local like this您可以像这样在本地测试 coaps 连接

$ ./coap-server -A ::1 -k 1234 &
$ ./coap-client 'coaps://[::1]/' -k 1234 -u CoAP

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM