I managed to resolve the issue. It was due to my certificate only able to work with domain.co.uk and not sub.domain.co.uk.

I had to create another cert for the subdomain.