X509 certificate generation in S5D9

Hi, 

I am using S5D9 controller and i am using g_sce_crypto_api for sign and keycreate functionality. 

Now i want to create a X509 certificate using private key generated, 

Please give the solution for this problem. 

Regards, 

Vasim Khatri