Peer's Certificate issuer is not recognized

Hi Team,
I’m facing below error while running Jenkins freestyle job
I’m trying to fetch code from bitbucket getting below certificate error.
Please provide solution.
Failed to connect to repository : Command “/usr/bin/git ls-remote -h HEAD” returned status code 128:
stderr: fatal: unable to access ‘’: Peer’s Certificate issuer is not recognized.

There seems to be a workable recommendation on stackoverflow. Either install the SSL certificate on the controller and the agent or switch to use SSH protocol instead of HTTPS protocol