Skip to content

Commit

Permalink
revert load_cert
Browse files Browse the repository at this point in the history
Signed-off-by: byhsu <[email protected]>
  • Loading branch information
ByronHsu committed May 16, 2023
1 parent 716f7d1 commit 9749adb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions flytekit/clients/auth_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,8 @@ def load_cert(cert_file: str) -> crypto.X509:
"""
Given a cert-file loads the PEM certificate and returns
"""
st_cert = open(cert_file, "rb").read()
cert = crypto.load_certificate(crypto.FILETYPE_PEM, st_cert)
return crypto.dump_certificate(crypto.FILETYPE_PEM, cert)
st_cert = open(cert_file, "rt").read()
return crypto.load_certificate(crypto.FILETYPE_PEM, st_cert)


def bootstrap_creds_from_server(endpoint: str) -> grpc.ChannelCredentials:
Expand Down

0 comments on commit 9749adb

Please sign in to comment.