how to encrypt and sign iphone mobile configuration file using Ruby

后端 未结 2 1861
不知归路
不知归路 2021-01-01 05:41

I have a unsigned mobileconfig file in xml format (template) generated by iphone configuration utility. I would like to encrypt and sign it using openssl and be able to inst

2条回答
  •  孤城傲影
    2021-01-01 06:15

    The link you mentioned talks only about signing the iPhone configuration profile. Does atleast signing a profile works for you?
    You can verify that signature generated by your code is correct using openssl command line utility. Write the generated signature to a file and use following command to verify signature and extract original data from pkcs#7 signature.

    openssl smime -verify -inform DER -in signed_config.p7s -signer your_signing_certificate -out data.txt

提交回复
热议问题