Cannot connect to my Cloudflare tunnel server


I just setup my Cloudflare tunnel from the zero trust dashboard using the docker run command given in the dashboard. However when I try to visit any of my public hostname I get error 502 and when I check the docker log for cloudflared this is what I see:

2023-04-23T02:31:42Z ERR Request failed error=“Unable to reach the origin service. The service may be down or it may not be responding to traffic from cloudflared: x509: certificate is valid for, not” connIndex=0 dest= event=0 ip= type=http

I am not sure how to configure the certificate and origin service. if someone here can help I will be forever grateful