How to create a RSA (PEM 1024 bit) key pair in Objective-C or Apple Swift?

Good time of day, in General you need to create a RSA (PEM 1024 bit) key pair, tried different options, but the problem is that as it turned out iOS is a rarity, I tried this way:

Method #1
Method #2

But it's not what you need, they are in HEX need PEM or how to convert the key to PEM?
September 26th 19 at 11:44

Find more questions by tags Objective-CRSA