I am working on an app where I am trying to generate a .crt file. I know what all of the necessary parameters should be (at least most). I am having trouble finding any documentation on this. Apple has this tutorial, but it is only on managing certificates. Not on actually creating them. Where can I read more about creating them, or if anyone has done this, can you explain the process to me? Thanks.
Asked
Active
Viewed 2,123 times
1 Answers
0
I guess the best you should do is to use existing tools like OpenSSL command line application... You can wrap it in a swift application if you want to. But if it's a one time creation just use the tool
I don't remember if it's pre installed in OS X or not Check this out

Yitzchak
- 3,303
- 3
- 30
- 50
-
So this confirms that I cannot make it with some apple library. I will just have to embed openSSL then. Thanks for the answer. – iOSGuy93892 Oct 25 '17 at 15:09
-
1It looks like apple does not like the use of open ssl, under the 'Open SSL' section see https://developer.apple.com/library/content/documentation/Security/Conceptual/cryptoservices/GeneralPurposeCrypto/GeneralPurposeCrypto.html – iOSGuy93892 Oct 25 '17 at 19:25
-
Very important link. I still think you should use OpenSSL because as Apple said it is commonly used in the community. And to solve the problem the said that the API is not stable- you can do their solution and just provide a single OpenSSL version bundled in your app. Than you're covered. – Yitzchak Oct 25 '17 at 20:19
-
It's easier to use a library that has so many great examples out that. By the way, I used OpenSSL myself, very easy to use, and every error will give you plenty of great answers in Google or SO – Yitzchak Oct 25 '17 at 20:21