Using the openssl library in ruby I am able to do encryption anddecryption . Apart from this . I encrypted data in C#( windows ) usingthis .pfx file . The c# coding is , public string GetEncryptedText(string PlainStringToEncrypt)

This encrypted data was created in C#(windows) using above code butmycert.pfx was created in linux machine . Now I want to dodecryption in ruby linux .I followed following decryption methods in ruby ,create the privatekey.pem using openssl command is ,openssl pkcs12 -in mycert.pfx -out private.pem -nodes#give the password as "paymate"