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.