Is it possible to create a CSR a la PKCS10 with just CommonCrypto

Is it possible to create a CSR a la PKCS10 with just CommonCrypto?


I'm aware that it can be done using openssl from both objc and Swift.


The structure is called CertificationRequestInfo in PKCS10 and is also referred to as a CSR (Certificate Signing Request).

https://tools.ietf.org/html/rfc2986#section-4.1


Thanks,

Rowland

Is it possible to create a CSR a la PKCS10 with just [iOS APIs]?

No. Neither the Security framework nor Common Crypto support any high-level CSR APIs. They do support various building blocks that you would need to order to create a CSR (asymmetric key generation, asymmetric key operations, digest functions, and so on) but putting them all together to create a CSR is not easy.

ps I assume you’re talking about iOS here; the situation on OS X is a little different.

Share and Enjoy

Quinn "The Eskimo!"
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

You may want to check that out, it might help you

https://github.com/ateska/ios-csr

You probably should clarify whether this is GPL version 2 (as per the LICENSE file) or GPL version 3 (as per the source code).

Share and Enjoy

Quinn "The Eskimo!"
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Hi Rowland,


Did you create the CSR, please?


Thanks in advance.

Is it possible to create a CSR a la PKCS10 with just CommonCrypto
 
 
Q