Certificate verify failed (unable to get local issuer certificate)

zero-trust was working and then it started asking for - certificate verify failed (unable to get local issuer certificate).

once I turned it off it my mac works fine.

any idea how to fix this error?