Skip to content

Commit 092d9a7

Browse files
committed
Fixed issue on Policy creation for VaaS
Fixed an issue where a default keypair is not added to the cit request when the Policy Specification does not have any defined
1 parent cc1c517 commit 092d9a7

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

vcert/policy/pm_cloud.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -558,6 +558,12 @@ def build_cit_request(ps, ca_details):
558558
ec_kt['keyCurves'] = ['P256']
559559

560560
key_types.append(ec_kt)
561+
else:
562+
rsa_kt = {
563+
'keyType': KeyType.RSA.upper(),
564+
'keyLengths': [2048]
565+
}
566+
key_types.append(rsa_kt)
561567

562568
request['keyTypes'] = key_types
563569

0 commit comments

Comments
 (0)