code: def local_keys(self):
          '''
          Return a dict of local keys
          '''
          ret = {'local': []}
          for fn_ in salt.utils.data.sorted_ignorecase(os.listdir(self.opts['pki_dir'])):
              if fn_.endswith('.pub') or fn_.endswith('.pem'):
                  path = os.path.join(self.opts['pki_dir'], fn_)
                  if os.path.isfile(path):
                      ret['local'].append(fn_)
          return ref local_keys(self):
          '''
          Return a dict of local keys
          '''
          ret = {'local': []}
          for fn_ in salt.utils.data.sorted_ignorecase(os.listdir(self.opts['pki_dir'])):
              if fn_.endswith('.pub') or fn_.endswith('.pem'):
                  path = os.path.join(self.opts['pki_dir'], fn_)
                  if os.path.isfile(path):
                      ret['local'].append(fn_)
          return ret
docs: Return a dict of local keys