Support upload of self signed certificates

Uploading of self signed certificates while creating TLS listener fails.

Change-Id: I21ac14407c61906f01563e6b06f819ef250233a8
This commit is contained in:
Kobi Samoray 2021-11-09 18:22:26 +02:00
parent fbb3f64261
commit 28c2078e4d
1 changed files with 2 additions and 1 deletions

View File

@ -151,7 +151,8 @@ class EdgeListenerManagerFromDict(base_mgr.EdgeLoadbalancerBaseManager):
'Using first signed certificate of the bundle') 'Using first signed certificate of the bundle')
edge_cert_id = None edge_cert_id = None
for cert in cert_list: for cert in cert_list:
if cert['certificateType'] == 'certificate_signed': if cert['certificateType'] in ['certificate_signed',
'certificate_self_signed']:
edge_cert_id = cert['objectId'] edge_cert_id = cert['objectId']
break break
if not edge_cert_id: if not edge_cert_id: