File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
volcenginesdkarkruntime/_utils Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -70,13 +70,13 @@ class key_agreement_client():
7070 def __init__ (self , certificate_pem_string : str ) -> None :
7171 """ Load cert and extract public key
7272 """
73- __fixed_version__ = "43.0.3" # version check
73+ __fixed_version__ = "43.0.3" # version check
7474 from cryptography import __version__
7575 if __version__ != __fixed_version__ :
7676 raise Exception ("The cryptography package of Ark SDK only supports version {}, "
7777 "please install the cryptography package by using pip install cryptography=={}" .
7878 format (__fixed_version__ , __fixed_version__ ))
79-
79+
8080 pem_data = certificate_pem_string .encode ()
8181 self ._cert = x509 .load_pem_x509_certificate (pem_data )
8282 cert_pub = self ._cert .public_key ().public_numbers ()
You can’t perform that action at this time.
0 commit comments