Fix private key bytecode issue

This commit is contained in:
Curtis Castrapel 2018-08-17 10:59:01 -07:00
parent a6b1f33208
commit 7f9a035802
1 changed files with 2 additions and 0 deletions

View File

@ -72,6 +72,8 @@ def upload_cert(name, body, private_key, path, cert_chain=None, **kwargs):
name = name + '-' + path.strip('/')
try:
if isinstance(private_key, bytes):
private_key = private_key.decode("utf-8")
if cert_chain:
return client.upload_server_certificate(
Path=path,