I have a requirement to generate an x509 certificate at runtime, I did some google and found some examples of using a certificate instead of creating a certificate.
Thank you and welcome, S. Murali Krishnan
My recommendation is to compile and static openssl link with your iOS project.
Then create your x509 certificate using the openssl API ( check this sample code )