We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b91828a commit c75fc8eCopy full SHA for c75fc8e
volcenginesdkarkruntime/_utils/_key_agreement.py
@@ -27,7 +27,7 @@ def get_cert_info(cert_pem: str) -> Tuple[str, str]:
27
dns = cert.extensions.get_extension_for_class(
28
x509.SubjectAlternativeName).value.get_values_for_type(x509.DNSName)
29
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.")
+ return dns[0][5:], dns[1][4:]
31
except Exception:
32
pass
33
return "", ""
0 commit comments