Skip to content

Commit c75fc8e

Browse files
author
liuhuiqi.7
committed
feat(e2ee): prefix trim
1 parent b91828a commit c75fc8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

volcenginesdkarkruntime/_utils/_key_agreement.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def get_cert_info(cert_pem: str) -> Tuple[str, str]:
2727
dns = cert.extensions.get_extension_for_class(
2828
x509.SubjectAlternativeName).value.get_values_for_type(x509.DNSName)
2929
if dns and len(dns) > 1 and re.match(r"^ring\..*$", dns[0]) and re.match(r"^key\..*$", dns[1]):
30-
return dns[0].strip("ring."), dns[1].strip("key.")
30+
return dns[0][5:], dns[1][4:]
3131
except Exception:
3232
pass
3333
return "", ""

0 commit comments

Comments
 (0)