def build_keyjar(key_conf, kid_template="", keyjar=None, kidd=None):

    if keyjar is None:
        keyjar = KeyJar()

    if kidd is None:
        kidd = {"sig": {}, "enc": {}}

    kid = 0
    jwks = {"keys": []}

    for spec in key_conf:
        typ = spec["type"].upper()

        if typ == "RSA":
            if "key" in spec:
                kb = KeyBundle(source="file://%s" % spec["key"],
                               fileformat="der",
                               keytype=typ, keyusage=spec["use"])
            else:
                kb = rsa_init(spec)
        elif typ == "EC":
            kb = ec_init(spec)

        for k in kb.keys():
            if kid_template:
                k.kid = kid_template % kid
                kid += 1
            else:
                k.kid = b64e(k.thumbprint('SHA-256')).decode('utf8')
            kidd[k.use][k.kty] = k.kid

        jwks["keys"].extend(
            [k.serialize() for k in kb.keys() if k.kty != 'oct'])

        keyjar.add_kb("", kb)

    return jwks, keyjar, kidd
Install tomcat on one VM and wrk on another.
dataset/ETHPy150Open rohe/pyoidc/src/oic/utils/keyio.py/build_keyjar--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/PerfKitBenchmarker/perfkitbenchmarker/linux_benchmarks/tomcat_wrk_benchmark.py/Prepare