`security cms -D` Printing an Error with Expected Output

Originator:grant.butler
Number:rdar://30207962 Date Originated:26-Jan-2017 11:46 AM
Status:Open Resolved:
Product:macOS + SDK Product Version:10.12.3 (16D32)
Classification: Reproducible:Always
 
Area:
Something not on this list

Summary:
When decoding a CMS message using the `security` command line tool, an error is printed about invalid parameters being passed to a Security.framework function, but this error has no other impact on the execution of the command.

Steps to Reproduce:
1. Have a provisioning profile somewhere on disk.
2. Run the command `security cms -D -i <path to provisioning profile>`

Expected Results:
Plist data from the provisioning profile.

Actual Results:
Plist data from the provisioning profile, along with the error "security: SecPolicySetValue: One or more parameters passed to a function were not valid."

Though this error is printed, it does not halt execution of the `security` command, nor does it prevent the plist data from being printed.

Version:
macOS 10.12.3 (16D32)

Notes:


Configuration:


Attachments:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!