kma*_*mur 5 xamarin.ios ios xamarin
使用案例:
该应用程序导入PKCS 12文件(带有证书和私钥)并保存以供以后使用.
当前状态:
我能够使用SecImportExport.ImportPkcs12来获取SecIdentity和SecTrust对象.不幸的是,我无法将SecIdentity和SecTrust对象分配给SecRecord.
代码:
SecIdentity identityObject = ...;
SecTrust trustObject = ...;
SecRecord record = new SecRecord(SecKind.Identity);
record.Account = "Identity";
record.ValueData = ? //HOW TO CONVERT SecIdentity to NSData?
var res = SecKeyChain.Add(record);
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
363 次 |
| 最近记录: |