Use certificate for nextcloud

how can I use a generated certificate and a key for nextcloud services to enable https ?

You want to create a nginx virtual host that is named like after the vhost the nextcloud module already generates and add a certificate to that.