Error x509: certificate has expired or is not yet valid when login from Drone CI

Hi I tried to setup drone with https gitea.
The error is Login Failed. Get https://hostname/api/v1/users/adm/tokens: x509: certificate has expired or is not yet valid when I login from Drone.

The cert is from https://www.sslforfree.com/ and is valid, my website is green and when use curl to test the connection there is no error. All the test are done on the host.

Please help me. I tried to use normal connection and encrypt via ssh, but it fails to clone the repository.