Encrypt text using PKCS#7

For encrypting text using PKCS#7 i found this :

but how can i add certificate file in?

You can do it in python or a custom script.

You are going to need to custom code something as it will need to call a 3rd party app to read the cert as well and encrypt/sign the msg with it.

@Pure would you help?

Never been bothered with a cert before. Don’t have any personal expirence with it. Buttttt

you can do it with node.js. Its pretty similar. Here is a example script

https://www.example-code.com/nodejs/pkcs7_encrypt_with_multiple_certs.asp