tpazderka: EOL replacement in certificate read.
This commit is contained in:
@@ -664,7 +664,8 @@ def read_cert_from_file(cert_file, cert_type):
|
||||
return ""
|
||||
|
||||
if cert_type == "pem":
|
||||
line = read_file(cert_file).split("\n")
|
||||
line = open(cert_file).read().replace("\r\n", "\n").split("\n")
|
||||
|
||||
if line[0] == "-----BEGIN CERTIFICATE-----":
|
||||
line = line[1:]
|
||||
elif line[0] == "-----BEGIN PUBLIC KEY-----":
|
||||
|
||||
Reference in New Issue
Block a user