cannot enable ssl website

Failed to open /home/somedomain.ca/certs/somedomain.ca/cert.pem.webmintmp.4874 : No such file or directory at /usr/share/webmin/web-lib-funcs.pl line 1465, line 1

I get the above error when trying to enable an ssl website on one of my virtual domains it is an older domain and has been backed up and restored to newer hardware, i mention this because some sites are fine and i can enable ssl without issue

Running on a fully up to date (as of today ) virtualmin installed on ubuntu 16.04

Also there is no /home/somedomain.ca/certs directory

hope someone can help me out with this?

I had similar issues long time ago.
In my case was ownership problems.
Run Limit and Validation — > Validate virtual server for your virtual domain which has the issues.
If it find owner issues, you should assign the proper user and group for that server.

Thanks for the reply, I did as you instructed running validation on the site, and all it mentioned not having homes directory which i created, and then tried to add the ssl site again still getting the same error.