Hello Mattias, the upstream maintainer has worked further on the old dtls branch of libcoap and prepared some binaries with included DTLS functionality.
https://sourceforge.net/p/libcoap/mailman/libcoap-developers/thread/87lgqxn2cg.fsf%40aung.informatik.uni-bremen.de/#msg35794006 There will come some new libcoap stuff in future times with DTLS support in upcoming releases. Regards Carsten