title: Set imported certificate to always be trusted in Mac OS X
body: <p>I have generated a certificate in pfx format in Mac os X and imported it into system keychain using:</p>
  
  <pre><code>sudo security import server.pfx -k /Library/Keychains/System.keychain -P foobar
  </code></pre>
  
  <p>The problem is that all trusts are set to <code>no value specified</code>. </p>
  
  <p><a href="https://i.stack.imgur.com/7UiNE.png" rel="noreferrer"><img src="https://i.stack.imgur.com/7UiNE.png" alt="enter image description here"></a></p>
  
  <p>How can I set trust for code signing to <code>Always trust</code> using <strong>command line</strong>.</p>