The question is pretty straight forward. How is it possible to create a x509 certificate in osx with just using the SecurityFramework API. I want to create the certificate with a publicKey I generated with SecKeyGeneratePair.
I only found in the docu so far the method SecCertificateCreateWithData, but this requires already a x509 certificate as a parameter, so this doesn't do the trick for me. I couldn't find any method with which i can create a certificate from scratch. Also i am not very experienced with this topic, so it is very likely that I am missing something here. Any help is greatly appreciated.
Also using openSSL or any deprecated API is not an option for my project.
I already came across this question Creating x509 certificates programmatically in Objective-C using the Security Framework, but since this is a year old i wondered if there is maybe now a possibility to do it,