title: How do I encrypt a string with an RSA public key from a ASN.1 x509 Byte array?
body: <p>I have an ASN.1 x509 byte array that contains the modulo and the public key of an RSA pair.  My goal is to do whatever it takes to use this to encrypt a string.  I'm trying to use openssl in objective-c to accomplish this.  Whenever I try to get an RSA object using <code>d2i_X509</code>, it returns null.  I'm willing to switch to a different library if I can't accomplish this using openssl.  Please help me find something that works.</p>