I am generating a valid iPhone Configuration XML Profile and delivering it via a Rails page.
I am trying to figure out how to programmatically sign the XML file with an
Just an FYI — I had to add to_der to the end to get mine to work:
to_der
sign = OpenSSL::PKCS7.sign(cert, key, profile, [], OpenSSL::PKCS7::BINARY).to_der