I create a valid iPhone configuration XML profile and deliver it through the Rails page.
I'm trying to figure out how to programmatically sign an x509 XML file so that iPhone recognizes it as a signed profile
This is a good tutorial on signing an iPhone configuration profile http://www.rootmanager.com/iphone-ota-configuration/iphone-ota-setup-with-signed-mobileconfig.html
In particular, for this, an unsigned company.mobileconfig file will be signed on the command line
openssl smime -sign -in company.mobileconfig -out signed.mobileconfig -signer server.crt -inkey server.key -certfile cert-chain.crt -outform der -nodetach
What would be the equivalent command in Ruby on Rails if I have an XML file in line? I can find a lot of documentation about servicing content over the SSL connection with the rails, but not mention signing any content before delivery.
source share