Encryption on RTSP

Hi everyone,

I have got an RTSP server running in Python using GStreamer, however, now I want to encrypt it. I have looked at the srtpenc/srtpdec elements, however, I am failing to combine these with the rtph264pay element I have that wraps my H264 input as an RTP packet.

This is one way of encryption that I am trying, I looked into setting up TLS but was unable to find any examples, if you can offer any help with this approach it will also be much appreciated.

Thanks for your help,
Let me know if you need more details,
Thanks.

Any solution? I am having the same question.

Various of the gst-rtsp-server examples are using TLS or encryption of the media transport via SRTP (using MIKEY).

I have tried test_video.c example but i cant manage to have my client read the rtsps stream.

0:00:00.182171569 330894 0x653418dc1360 ERROR                default gstrtspconnection.c:1102:gst_rtsp_connection_connect_with_response_usec: failed to connect: Peer failed to perform TLS handshake: Error receiving data: Connection reset by peer
0:00:00.182200664 330894 0x653418dc1360 ERROR                rtspsrc gstrtspsrc.c:5238:gst_rtsp_conninfo_connect:<rtspsrc0> Could not connect to server. (Generic error)