#NEWLINE# def get_all_certs_keys( self ) : #NEWLINE# #INDENT# 'Find all existing keys, certs from configuration.\n\n        Retrieve all certs and keys set in VirtualHosts on the Apache server\n\n        :returns: list of tuples with form [(cert, key, path)]\n            cert - str path to certificate file\n            key - str path to associated key file\n            path - File path to configuration file.\n        :rtype: list\n\n        ' #NEWLINE# c_k = set ( ) #NEWLINE# for vhost in self . vhosts : #NEWLINE# #INDENT# if vhost . ssl : #NEWLINE# #INDENT# cert_path = self . parser . find_dir ( 'SSLCertificateFile' , None , start = vhost . path , exclude = False ) #NEWLINE# key_path = self . parser . find_dir ( 'SSLCertificateKeyFile' , None , start = vhost . path , exclude = False ) #NEWLINE# if ( cert_path and key_path ) : #NEWLINE# #INDENT# cert = os . path . abspath ( self . parser . get_arg ( cert_path [ ( - 1 ) ] ) ) #NEWLINE# key = os . path . abspath ( self . parser . get_arg ( key_path [ ( - 1 ) ] ) ) #NEWLINE# c_k . add ( ( cert , key , get_file_path ( cert_path [ ( - 1 ) ] ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# logger . warning ( 'Invalid VirtualHost configuration - %s' , vhost . filep ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return c_k