title: Getting issue in keychain: iPhone Distribution Certificate is not trusted
body: <p>I'm working on iOS enterprise application, now our iOS distribution certificate is expired and I'm creating new certificate using below steps:</p>
  <ol>
  <li>Create certificate sigining request from keychain access.</li>
  <li>Login with developer.apple.com and generate distribution certificate using certificate sigining request.</li>
  <li>download new iOS distribution certificate and install.</li>
  </ol>
  <p>After this I'm able to see iOS Distribution certificate in keychain access but getting error:
  <strong>&quot;iPhone Distribution certificate is not trusted&quot;.</strong></p>
  <p><a href="https://i.stack.imgur.com/1BiHu.png" rel="noreferrer"><img src="https://i.stack.imgur.com/1BiHu.png" alt="enter image description here" /></a></p>
  <p>Also, I have tried it using Automatically manage signing, and tried to export ipa file, but I'm getting below error:</p>
  <p><a href="https://i.stack.imgur.com/ha9G2.png" rel="noreferrer"><img src="https://i.stack.imgur.com/ha9G2.png" alt="enter image description here" /></a></p>
  <p>Please help me to resolve this errors.</p>