Skip to content

Commit

Permalink
Fix cert issue (NVIDIA#3074)
Browse files Browse the repository at this point in the history
  • Loading branch information
YuanTingHsieh authored Nov 27, 2024
1 parent e55c523 commit f4af676
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nvflare/lighter/impl/cert.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,8 @@ def _generate_cert(
if h != default_host:
sans.append(x509.DNSName(h))
builder = builder.add_extension(x509.SubjectAlternativeName(sans), critical=False)
else:
builder = builder.add_extension(x509.SubjectAlternativeName([x509.DNSName(subject)]), critical=False)
return builder.sign(signing_pri_key, hashes.SHA256(), default_backend())

def _x509_name(self, cn_name, org_name=None, role=None):
Expand Down

0 comments on commit f4af676

Please sign in to comment.