samtap / fang-hacks

Collection of modifications for the XiaoFang WiFi Camera
1.68k stars 340 forks source link

Present RTSP stream using TLS for allowing Alexa integration #295

Open kaotix opened 6 years ago

kaotix commented 6 years ago

I recently got into the whole smart home hype (amazon alexa/google home) and I've been reading up on the requirements around allowing Alexa access an RTSP stream.

Currently it requires the RTSP stream to be TLS encrypted, also to have a DNS entry for the cameras hostname and for a valid SSL certificate matching the cameras hostname.

While DNS isn't an issue, getting TLS working would be very interesting. Does anyone know if the current RTSP server supports this?

samtap commented 6 years ago

It's not supported by the RTSP server but you might be able to use stunnel or nginx as a proxy. It depends on what exactly the alexa api requires. If it just expects everything to run over HTTPS it's quite easy. Proper SRTP (secure RTP, which I've only seen in use for voip applications) likely requires some support from the RTSP server.