title: Warning: unable to build chain to self-signed root for signer "Developer ID Application: xxxxxx: errSecInternalComponent
body: <p>I am trying to migrate our build server to a new machine.
  I exported the certificate and imported it on the new machine.
  But when I get error when I am trying to run codesign</p>
  
  <pre><code>Warning: unable to build chain to self-signed root for signer "Developer ID Application: xxxxxxx"./workspace/onCourseServer.app: errSecInternalComponent
  </code></pre>
  
  <p>I tried deleting the certificate and reimporting it, adding <code>always trust</code>; I also tried regenerating the certificate and using the new certificate on the new mac. But none of them worked. I am still getting the same error.</p>
  
  <p>The new mac is running the mojave.</p>