Backend: Add self-signed cert generation