Problem with cloudflare and subdomains

Then Vikunja is only running on http (port 80). To make it available on https (port 443), you will need to host it with https on your server. Cloudflare can only help you there in that it can give you a valid tls certificate for free but it can’t make a site you’re hosting on http available via https.

Check out this thread for information on how to do this with a self-signed certificate: