#NEWLINE# def list_certs( keychain = '/Library/Keychains/System.keychain' ) : #NEWLINE# #INDENT# "\n    List all of the installed certificates\n\n    keychain\n        The keychain to install the certificate to, this defaults to\n        /Library/Keychains/System.keychain\n\n    CLI Example:\n\n    .. code-block:: bash\n\n        salt '*' keychain.list_certs\n    " #NEWLINE# cmd = 'security find-certificate -a {0} | grep -o "alis".*\\" | grep -o \'\\"[-A-Za-z0-9.:() ]*\\"\'' . format ( _quote ( keychain ) ) #NEWLINE# out = __salt__ [ 'cmd.run' ] ( cmd , python_shell = True ) #NEWLINE# return out . replace ( '"' , '' ) . split ( '\n' )