Image is not getting pushed to ACR using acr drone plugin

Hi everyone ,
I have been trying to push image to ACR using the drone acr plugin but it’s not getting pushed even if I provide service principal id and secret. Attached the yaml code for reference .

name: default
  image: plugins/acr
      from_secret: id
      from_secret: secret
    repo: foo/bar
      - ${DRONE_COMMIT_SHA:0:8}
    dockerfile: ./Dockerfile

Using the above drone plugin for pushing, but getting this issue
Get "": x509: certificate is valid for *, not
Any idea what could be wrong here?

hello @Jasdeep
have you seen this documentation?

Hey, thanks for the reply.
Is there any other way through which I can build and push images to ACR but using drone only.

So I am referring this documentation . Facing the same issue
*Get “”: x509: certificate is valid for,, not