Certificate for gnome-remote-desktop

I’m trying to set up to set-up gnome-remote-desktop installed via dnf onto a Fedora 40 LXC-container.

I’ve stumbled upon a certificate error.

[root@RemoteDesktop ~]# grdctl rdp enable
[01:08:49:343] [2073:00000819] [ERROR][com.freerdp.crypto] - [x509_utils_from_pem]: BIO_new failed for certificate
RDP server certificate is invalid.
Failed to lookup legacy VNC password schema: The name is not activatable

Am I supposed to generate my own cert via OpenSSL and feed it to the server somehow?

Headless Remote Desktop setup process - #2 by vgaetera - Desktop - GNOME Discourse