aiocoap.transports.tls module¶
CoAP-over-TLS transport (early work in progress)
Right now this is running on self-signed, hard-coded certificates with default SSL module options.
To use this, generate keys as with:
$ openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 5 -nodes
and state your hostname (eg. localhost) when asked for the Common Name.
-
class
aiocoap.transports.tls.
TLSServer
¶ Bases:
aiocoap.transports.tls._TLSMixIn
,aiocoap.transports.tcp.TCPServer
-
classmethod
create_server
(bind, tman, log, loop, server_context)¶
-
classmethod
-
class
aiocoap.transports.tls.
TLSClient
¶ Bases:
aiocoap.transports.tls._TLSMixIn
,aiocoap.transports.tcp.TCPClient