Open NuSkooler opened 8 years ago
Update: I've moved to just accessing the rawCapture. This works, so unless there is/should be an more elegant way to do such things, you could consider this closed.
Example:
p7.rawCapture.content.value[0].value[0].value
I'm using node-forge for a iOS MDM server and am in need to extract and validate (*) PKCS#7 signed data but cannot seem to get anywhere.
(*) it's my understanding -- and from the code -- that verification of PKCS#7 is NYI.
The data in question is DER encoded PKCS#7 mobile configuration (.plist / XML). I'm attempting to get basic information like so:
When I inspect
p7.signers
,p7.content
, etc. they are empty. Inspectingp7.rawCapture.content...
shows me the data is present (I can see the XML "message" here), but I'm not sure how I should be accessing it.Any ideas/tips/etc. appreciated!
BTW, Apple's docs show the following in their sample for this step: