What happens when just visit yourdomain.com:22222 ? Is it still complains?
You issue wildcard certificate for main domain, not for subdomain.
I would also not over-complicate things, why not just use yourdomain.com:222222 if it works? If it's your personal use not for some paid client, then it should be fine.