Skip to content

qursa-uc3m/coap2http-proxy

 
 

Repository files navigation

libcoap-proxy

This is a fork of https://github.com/Rodriferli/libcoap-proxy-TFG.

Install the project

Prerequisites

If you want to use wolfSSL as DTLS backend and post-quantum cryptography, you need to install liboqs and wolfSSL with post-quantum cryptography support:

./install_liboqs_for_wolfssl.sh
./install_wolfssl.sh

These scripts will install liboqs and configure wolfSSL with post-quantum cryptography support, including options for DTLS 1.3 and experimental features.

libcoap

The proxy works with libcoap latest version

First install libcoap

./install_libcoap.sh [-b dtls_backend]

This script now allows you to specify the DTLS backend. By default, it uses wolfSSL. You can change this by using the -b option followed by the desired backend. The script also sets up specific cryptographic groups. As an example, we show how to include the post-quantum algorithm KYBER_LEVEL1, alongside traditional elliptic curve groups P-384 and P-256. This requires to have enabled PQ cryptography in the wolfSSL installation.

This will install libcoap in the /usr/local/lib directory.

Proxy

Then install the proxy

./install_proxy.sh </path/to/libcoap>

Running the proxy

First ensure the HTTP server is running. Then run the proxy with the following command

 ./build/coap2HttpServer -P ",my_proxy"

And then run the coap client. For example

.<path_to_coap_client>/coap-client -P coap://[::1] -m get http://localhost:8080

will send a GET request to the HTTP server at localhost:8080 through the proxy.

About

CoAP to HTTP libcoap proxy

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 95.8%
  • Shell 2.5%
  • CMake 1.7%