Skip to content

Commit

Permalink
修复多ip证书获取问题
Browse files Browse the repository at this point in the history
  • Loading branch information
mouday committed Nov 1, 2024
1 parent 00fa678 commit f1c2c52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions domain_admin/utils/cert_util/cert_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,8 @@ def get_certificate_san(x509cert):
ext = x509cert.get_extension(i)
if 'subjectAltName' in str(ext.get_short_name()):
for item in str(ext).split(', '):

if item.startswith('DNS:'):
# add IP Address support
if item.startswith('DNS:') or item.startswith('IP Address:'):
key, value = item.split(':')
dns_names.append(value.strip())

Expand Down

0 comments on commit f1c2c52

Please sign in to comment.