You can also do a text dump by typing
security cms -D -i <prov>
FWIW
-
securityis to Administer Keychains, keys, certificates and the Security framework. -
cmsis a command within thesecurityframework it stands for Cryptographic Message Syntax -
-Dis for decoding -
-imeans infile use infile as source of data (default: stdin)