The TLS config node is provided by the core as tls-config
, so you can use it like any other config node.
So I think all you need to do is just add an optional node property, like
tls: {type:"tls-config",required: false}
The core MQTT node is a good example.