Original post

I want to integrate third-party API in my code. I have details of that API.
I want to pass one key with data.
I have a pfx certificate (bought from the website) I want to convert it into base64 encoding with pkcs7 format.
I looked much help in web, not anything useful.