Skip to content

Commit 4e65a0b

Browse files
author
Roland Hedberg
committed
tpazderka: EOL replacement in certificate read.
1 parent 13fdda5 commit 4e65a0b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/saml2/sigver.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,8 @@ def read_cert_from_file(cert_file, cert_type):
664664
return ""
665665

666666
if cert_type == "pem":
667-
line = read_file(cert_file).split("\n")
667+
line = open(cert_file).read().replace("\r\n", "\n").split("\n")
668+
668669
if line[0] == "-----BEGIN CERTIFICATE-----":
669670
line = line[1:]
670671
elif line[0] == "-----BEGIN PUBLIC KEY-----":

0 commit comments

Comments
 (0)