Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into tf_algos
Browse files Browse the repository at this point in the history
update the branch with last changes from upstream/main
  • Loading branch information
falibabaei committed Jul 26, 2024
2 parents ed5249f + ff080d1 commit bb2cbcd
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions nvflare/lighter/impl/cert.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,6 @@ def _build_write_cert_pair(self, participant, base_name, ctx):
with open(os.path.join(dest_dir, "server.key"), "wb") as f:
f.write(serialize_pri_key(tmp_pri_key))

pkcs12 = serialization.pkcs12.serialize_key_and_certificates(
subject.encode("ascii"), pri_key, cert, None, serialization.BestAvailableEncryption(subject.encode("ascii"))
)
with open(os.path.join(dest_dir, f"{base_name}.pfx"), "wb") as f:
f.write(pkcs12)
with open(os.path.join(dest_dir, "rootCA.pem"), "wb") as f:
f.write(self.serialized_cert)

Expand Down

0 comments on commit bb2cbcd

Please sign in to comment.