How to decrypt smime file in c# application? : I have a file, which is encrypted using this command:
openssl smime -encrypt -aes256 -in fileToencrypt -binary -outform DEM -out encryptedFile public_key


It can be decrypted using command:
openssl smime -decrypt -in encryptedFile -binary -inform DEM -inkey private-key.pem -out decryptedFile

I need to decrypt it using private key (PEM format) in my .NET Core application. What could be the possible solution?