资源描述:
《Certificate, Key, and Trust Services Programming Guide.pdf》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、Certificate,Key,andTrustServicesProgrammingGuideContentsIntroduction4OrganizationofThisDocument4SeeAlso5Certificate,Key,andTrustServicesConcepts6Certificates,Keys,andIdentities6Certificate,Key,andTrustServicesandCDSA7PoliciesandTrust7Certificate,Key,andTrustServicesTasksforiO
2、S9ExtractingandEvaluatinganIdentityFroma*.P12File9GettingandUsingPersistentKeychainReferences13FindingaCertificateIntheKeychain14ObtainingaPolicyObjectandEvaluatingTrust15RecoveringFromaTrustFailure17EncryptingandDecryptingData19Certificate,Key,andTrustServicesTasksforOSX27Fi
3、ndingaCertificateontheKeychain27ObtainingaPolicyObject29EvaluatingTrust31RecoveringFromaTrustFailure35Glossary39DocumentRevisionHistory442013-01-28
4、Copyright©2003,2013AppleInc.AllRightsReserved.2ListingsCertificate,Key,andTrustServicesTasksforiOS9Listing2-1Extractingidentitya
5、ndtrustobjectsfromPKCS#12Data10Listing2-2Displayinginformationfromthecertificate12Listing2-3Gettingapersistentreferenceforanidentity13Listing2-4Gettinganidentityusingapersistentreference14Listing2-5FindingacertificateIntheKeychain14Listing2-6Obtainingapolicyreferenceobjectand
6、evaluatingtrust16Listing2-7Settinganevaluationdate18Listing2-8Generatingakeypair19Listing2-9Encryptingdatawithapublickey22Listing2-10Decryptingwithaprivatekey24Certificate,Key,andTrustServicesTasksforOSX27Listing3-1Findingacertificateonthekeychain27Listing3-2Obtainingapolicyr
7、eferenceobject30Listing3-3Evaluatingtrust31Listing3-4Settinganevaluationdate35Listing3-5Recoveringfromatrustfailure352013-01-28
8、Copyright©2003,2013AppleInc.AllRightsReserved.3IntroductionCertificate,Key,andTrustServicesProgrammer’sGuidecontainsanoverviewofCertificate,Key,andT
9、rustservices,discussesthefunctionsanddatastructuresthataremostcommonlyusedbydevelopers,andprovidesexamplesofhowtouseCertificate,Key,andTrustServicesinyourownapplications.Certificate,Key,andTrustServicesprovidesaCAPIforverifyingcertificates,evaluatingtrust,andgeneratingasymmet
10、rickeys.Youcanusetheseservicesinyourapplicationto:●Addacertificateto