¡@

Home 

2014/10/15 ¤U¤È 10:13:41

iphone Programming Glossary: seccertificatecreatewithdata

iPhone: HTTPS client cert authentication

http://stackoverflow.com/questions/1460626/iphone-https-client-cert-authentication

@ cer NSData certData NSData alloc initWithContentsOfFile certPath SecIdentityRef myIdentity SecCertificateRef myCert SecCertificateCreateWithData NULL CFDataRef certData certData release SecCertificateRef certArray 1 myCert CFArrayRef myCerts CFArrayCreate NULL void..

iPhone: How to create a SecKeyRef from a public key file (PEM)

http://stackoverflow.com/questions/1595013/iphone-how-to-create-a-seckeyref-from-a-public-key-file-pem

rsa public key share improve this question You should be able to interpret a DER encoded pem and get a cert using SecCertificateCreateWithData from which you can then extract a key NSData myCertData .... SecCertificateRef cert SecCertificateCreateWithData kCFAllocatorDefault.. using SecCertificateCreateWithData from which you can then extract a key NSData myCertData .... SecCertificateRef cert SecCertificateCreateWithData kCFAllocatorDefault myCertData CFArrayRef certs CFArrayCreate kCFAllocatorDefault const void cert 1 NULL SecTrustRef trust..

Importing an SSL cert under the iPhone SDK

http://stackoverflow.com/questions/1746005/importing-an-ssl-cert-under-the-iphone-sdk

of. Thus I'm trying to import the cert into the Keychain manually and set its trust level but I've hit a block. I call SecCertificateCreateWithData successfully to import the certificate from a .cer file. On the desktop I would then call SecTrustSettingsSetTrustSettings.. pathForResource @ OFX G3 ofType @ cer assert path nil data NSData dataWithContentsOfFile path assert data nil cert SecCertificateCreateWithData NULL CFDataRef data assert cert NULL err SecItemAdd CFDictionaryRef NSDictionary dictionaryWithObjectsAndKeys id kSecClassCertificate..

RSA Encryption on iPhone

http://stackoverflow.com/questions/2418337/rsa-encryption-on-iphone

send RSA public key to iphone and use it to encrypt

http://stackoverflow.com/questions/4211484/send-rsa-public-key-to-iphone-and-use-it-to-encrypt

for example NSData encryptString NSString plainText withX509Certificate NSData certificate SecCertificateRef cert SecCertificateCreateWithData kCFAllocatorDefault __bridge CFDataRef certificate SecPolicyRef policy SecPolicyCreateBasicX509 SecTrustRef trust OSStatus..

Does SecTrustEvaluate() look for root certificates in the application keychain?

http://stackoverflow.com/questions/4669255/does-sectrustevaluate-look-for-root-certificates-in-the-application-keychain

pathForResource @ my.cert ofType @ der NSData derData NSData dataWithContentsOfFile path SecCertificateRef myCert SecCertificateCreateWithData NULL CFDataRef derData CFMutableArrayRef array CFArrayCreateMutable NULL 1 NULL CFArrayInsertValueAtIndex array 0 myCert..