title: terraform x509: certificate signed by unknown authority
body: <p>I'm using Terraform as a part of the DevOps pipeline tools and recently I have changed my PC then the terraform stop working, my Terraform runs inside a docker desktop container, the new PC has windows 11 and I can run the terraform from it without getting the certification problem, but the docker can't init the Terraform and I'm getting this error</p>
  <pre><code>terraform x509: certificate signed by unknown authority
  </code></pre>
  <p><a href="https://i.stack.imgur.com/yim9v.png" rel="nofollow noreferrer">enter image description here</a></p>
  <p>I have tried to copy past manual certificates from host to container but nothing help.</p>