(self, obj)
Perform an SSL history lookup on the query value.
Perform an SSL history lookup on the query value.
Perform an SSL history lookup on the query value .
def do_ssl_history(self, obj):
        """Perform an SSL history lookup on the query value."""
        client = self._generate_request_instance('ssl')
        query = self._get_query_type(obj)
        results = client.get_ssl_certificate_history(query=query)
        self._check_response(results)
        for record in results.get('results', []):
            for ip in record.get('ipAddresses', []):
                stats = {'SHA-1': record.get('sha1'),
                         'First Seen': record.get('firstSeen'),
                         'Last Seen': record.get('lastSeen')}
            self._add_result("SSL Certificate History", ip, stats)
def do_ssl_history ( self , obj ) : client = self . _generate_request_instance ( 'ssl' ) query = self . _get_query_type ( obj ) results = client . get_ssl_certificate_history ( query = query ) self . _check_response ( results ) for record in results . get ( 'results' , [ ] ) : for ip in record . get ( 'ipAddresses' , [ ] ) : stats = { 'SHA-1' : record . get ( 'sha1' ) , 'First Seen' : record . get ( 'firstSeen' ) , 'Last Seen' : record . get ( 'lastSeen' ) } self . _add_result ( "SSL Certificate History" , ip , stats )