From 061c47a7b94d746ef379591230f8e96e31c5b5bf Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Fri, 29 Mar 2019 14:48:53 +0100 Subject: [PATCH] yet another srt / bytes issue in certificate --- sfa/trust/certificate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sfa/trust/certificate.py b/sfa/trust/certificate.py index e05d3a1c..81742262 100644 --- a/sfa/trust/certificate.py +++ b/sfa/trust/certificate.py @@ -117,7 +117,7 @@ def convert_public_key(key): (ssh_f, ssh_fn) = tempfile.mkstemp() ssl_fn = tempfile.mktemp() - os.write(ssh_f, key) + os.write(ssh_f, key.encode()) os.close(ssh_f) cmd = keyconvert_path + " " + ssh_fn + " " + ssl_fn -- 2.43.0