https://www.cargo-lambda.info/commands/watch.html#tls-support
says that if you have a cert.pem and a key.pem file under XDG_CONFIG_HOME/.config/cargo-lambda, it should automatically use TLS every time.
That is not happening.
I have to use --tls-cert $XDG_CONFIG_HOME/cargo-lambda/cert.pem --tls-key $XDG_CONFIG_HOME/cargo-lambda/key.pem to get it working