title: Put RSA private key in iPhone keychain using SecItemAdd
body: <p>I generated a private PKCS#12 key and then put it in PEM format, and sent it over to the iPhone app. I want to save this private key in the iPhone Keychain. </p>
  
  <p>First, I removed the headers like "BEGIN RSA PRIVATE KEY". Then I converted the rest of it into <code>NSData</code>. Then, using code like this:</p>
  
  <p><a href="https://stackoverflow.com/questions/32704394/cfdictionaryref-issues-in-swift">CFDictionaryRef issues in Swift</a></p>
  
  <p>I was able to get a <code>SecKeyRef</code> from this private key.  </p>
  
  <p>Now I want to know how I can insert this <code>SecKeyRef</code> into the keychain using <code>SecItemAdd</code>?</p>