title: Get SecTrustEvaluate to trust my self signed certificate
body: <p>I am generating a certificate like so:</p>
  
  <pre><code>openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem
  </code></pre>
  
  <p>I want secTrustEvaluate to pass when I send in the key. I am converting the cert.pem to a SecTrustRef. Then I am adding it to the list of anchor certificates like so:</p>
  
  <pre><code>SecTrustSetAnchorCertificatesOnly(trustRef, true);
  </code></pre>
  
  <p>My question is if I then do:</p>
  
  <pre><code>SecTrustEvaluate(trustRef);
  </code></pre>
  
  <p>It is currently evaluating to false, which I believe is correct. All I want is to be able to create a certificate, then get that certificate to evaluate true via SecTrustEvaluate. Is this possible, or do I have to get my certificate signed by a CA? Note, this is just for testing that my SSL certificate validator is working. </p>