Is there any openssl api function to convert PKCS7 file to PEM. I am able to convert a PKCS12 file to PEM using PKCS12_parse() function which returns key and certificate giv
After some googling I am able to do that.
if(p7->d.sign->cert != NULL){ PEM_write_X509(fp, sk_X509_value(p7->d.sign->cert, 0)); }
where p7 is a pointer to pkcs7 struct and fp is the file pointer to PEM file