I want to create a signature with openssl. I have an executable command like the following, but I don't know how to translate it to PHP.
openssl cms -sign -inkey key.pem -signer signature.pem -outform DER -in xy.xml
How to call this command in PHP?