Sign A PKCS #7 Detached Signature Within iOS App

The Wallet Passes is a bundle of files with a signature, in the last step of generate a pass bundle: Sign the Pass and Create the Bundle, I do struggle from trying use Security, CryptoKit and Compression to complete it.

Does Security have I method to sign data for PKCS #7 signature? And, must I use zip for a bundle, Compression does not provide a way to generate a zip. Is there a native way to use Apple Framework and Swift to complete it?

Is there a native way to use Apple Framework and Swift to complete it?

No. The iOS SDK has neither CMS nor zip archive APIs.

Most folks do this sort of work on their server. If you have to do it on device, you’ll need to either write or acquire your own libraries for this.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Sign A PKCS #7 Detached Signature Within iOS App
 
 
Q