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 ""
|
return ""
|
||||||
|
|
||||||
if cert_type == "pem":
|
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-----":
|
if line[0] == "-----BEGIN CERTIFICATE-----":
|
||||||
line = line[1:]
|
line = line[1:]
|
||||||
elif line[0] == "-----BEGIN PUBLIC KEY-----":
|
elif line[0] == "-----BEGIN PUBLIC KEY-----":
|
||||||
|
|||||||
Reference in New Issue
Block a user