Fix private key bytecode issue
This commit is contained in:
parent
a6b1f33208
commit
7f9a035802
|
@ -72,6 +72,8 @@ def upload_cert(name, body, private_key, path, cert_chain=None, **kwargs):
|
||||||
name = name + '-' + path.strip('/')
|
name = name + '-' + path.strip('/')
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
if isinstance(private_key, bytes):
|
||||||
|
private_key = private_key.decode("utf-8")
|
||||||
if cert_chain:
|
if cert_chain:
|
||||||
return client.upload_server_certificate(
|
return client.upload_server_certificate(
|
||||||
Path=path,
|
Path=path,
|
||||||
|
|
Loading…
Reference in New Issue