Move WebCrypto parameters under separate dict
This commit is contained in:
parent
9e3c43588a
commit
073e4274e6
@ -41,11 +41,15 @@ class BootstrapResource(object):
|
|||||||
ike=config.get("Globals", "STRONGSWAN_IKE")["value"],
|
ike=config.get("Globals", "STRONGSWAN_IKE")["value"],
|
||||||
esp=config.get("Globals", "STRONGSWAN_ESP")["value"],
|
esp=config.get("Globals", "STRONGSWAN_ESP")["value"],
|
||||||
),
|
),
|
||||||
|
webcrypto=dict(
|
||||||
|
hash_algorithm=HASH_ALGO_MAPPING[authority.certificate.hash_algo],
|
||||||
|
signature_algorithm=SIGNATURE_ALGO_MAPPING[authority.certificate.signature_algo],
|
||||||
|
),
|
||||||
certificate=dict(
|
certificate=dict(
|
||||||
key_size=const.KEY_SIZE,
|
key_size=const.KEY_SIZE,
|
||||||
curve=const.CURVE_NAME,
|
curve=const.CURVE_NAME,
|
||||||
hash_algorithm=HASH_ALGO_MAPPING[authority.certificate.hash_algo],
|
hash_algorithm=authority.certificate.hash_algo,
|
||||||
signature_algorithm=SIGNATURE_ALGO_MAPPING[authority.certificate.signature_algo],
|
signature_algorithm=authority.certificate.signature_algo,
|
||||||
algorithm=authority.public_key.algorithm,
|
algorithm=authority.public_key.algorithm,
|
||||||
common_name=authority.certificate.subject.native["common_name"],
|
common_name=authority.certificate.subject.native["common_name"],
|
||||||
distinguished_name=cert_to_dn(authority.certificate),
|
distinguished_name=cert_to_dn(authority.certificate),
|
||||||
|
Loading…
Reference in New Issue
Block a user