def _parsePublisher(self, raw_publisher_string):
        """Parses publisher string which is a certificate attributes string, e.g.

        CN=Microsoft Corporation, O=Microsoft Corporation,L=Redmond, S=Washington, C=US

        @return: Organization string
        """
        dn = DnParser().parse(raw_publisher_string)
        organization = dn.find_first("O")
        if organization:
            return organization.value
Example #2
0
    def _parsePublisher(self, raw_publisher_string):
        '''Parses publisher string which is a certificate attributes string, e.g.

        CN=Microsoft Corporation, O=Microsoft Corporation,L=Redmond, S=Washington, C=US

        @return: Organization string
        '''
        dn = DnParser().parse(raw_publisher_string)
        organization = dn.find_first('O')
        if organization:
            return organization.value