code: async def list_keys(request: web.Request) -> web.Response:
      
      keys_dir = CONFIG['wifi_keys_dir']
      keys: List[Dict[str, str]] = []
      # TODO(mc, 2018-10-24): add last modified info to keys for sort purposes
      for path in os.listdir(keys_dir):
          full_path = os.path.join(keys_dir, path)
          if os.path.isdir(full_path):
              in_path = os.listdir(full_path)
              if len(in_path) > 1:
                  log.warning("Garbage in key dir for key {}".format(path))
              keys.append(
                  {'uri': '/wifi/keys/{}'.format(path),
                   'id': path,
                   'name': os.path.basename(in_path[0])})
          else:
              log.warning("Garbage in wifi keys dir: {}".format(full_path))
      return web.json_response({'keys': keys}, status=200)
docs: List the key files installed in the system.
  
      This responds with a list of the same objects as key:
  
      ```
      GET /wifi/keys -> 200 OK
      { keys: [
           {
            uri: '/wifi/keys/some-hex-digest',
            id: 'some-hex-digest',
            name: 'keyfile.pem'
           },
           ...
         ]
      }
      ```