简体   繁体   中英

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?

I have implementation of CoAP (libcoap), and implementation of DTLS (tinyDTLS). I want make libcoap client connect to a coaps server

I will be grateful for the any advice.

You can use Eclipse Californium to start up your own DTLS based CoAP server. Take a look at the DTLS example in the source repository , that should get you started.

Alternatively, you can connect to the Eclipse Californium sandbox CoAP server at californium.eclipse.org:5684.

Here's how to do that using the openssl s_client tool:

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

You can test coaps connection local like this

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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