Signing iPhone Configuration XML Profile with Ruby on Rails

后端 未结 2 628
故里飘歌
故里飘歌 2021-02-06 17:28

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

2条回答
  •  醉话见心
    2021-02-06 17:38

    Just an FYI — I had to add to_der to the end to get mine to work:

    sign = OpenSSL::PKCS7.sign(cert, key, profile, [], OpenSSL::PKCS7::BINARY).to_der
    

提交回复
热议问题