[英]Creating SSL public and private key pair in iOS app
I want create SSL public and private key from my ios app and then share the public key by uploading on a server. 我想从ios应用程序创建SSL公钥和私钥,然后通过在服务器上上传来共享公钥。 I know it is not a usual way but I need to create multiple key pairs unique to a device so for this I want to generate SSL key from iPhone app and upload it to a server. 我知道这不是通常的方式,但是我需要创建设备唯一的多个密钥对,为此,我想从iPhone应用程序生成SSL密钥并将其上传到服务器。 I will then use it for my future API requests. 然后,我将其用于将来的API请求。 Is it even possible? 可能吗
I have no idea about it and could not found any resource for this on the web. 我对此一无所知,因此在网上找不到任何资源。
Apple explains it here: 苹果在这里解释:
https://developer.apple.com/documentation/security/certificate_key_and_trust_services/keys/generating_new_cryptographic_keys?language=objc https://developer.apple.com/documentation/security/certificate_key_and_trust_services/keys/generating_new_cryptographic_keys?language=objc
Use SecKeyCreateRandomKey and SecKeyCopyPublicKey 使用SecKeyCreateRandomKey和SecKeyCopyPublicKey
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.