Cannot generate Apple Passbook signature

前端 未结 1 2057
别跟我提以往
别跟我提以往 2021-02-10 07:14

I am writing a shell script to automatically generate an Apple Passbook signature file from manifest.json using p12 certificate. Here is what I do:

openssl pkcs1         


        
相关标签:
1条回答
  • 2021-02-10 07:47

    I have solved this problem. Apparently, I also need WWDR.pem certificate to do this. This is how it worked:

    openssl pkcs12 -passin pass:"somepass" -in "mycert.p12" -clcerts -nokeys -out certificate.pem
    openssl pkcs12 -passin pass:"somepass" -in "mycert.p12" -nocerts -out key.pem -passout pass:"somepass"
    openssl smime -binary -sign -certfile WWDR.pem -signer certificate.pem -inkey key.pem -in manifest.json -out signature -outform DER -passin pass:"somepass"
    
    0 讨论(0)
提交回复
热议问题