Skip to content

Commit

Permalink
Fix: Identity from path python bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikDeSmedt authored and cdecker committed Feb 27, 2024
1 parent 9b6001c commit c76fef8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions libs/gl-client-py/glclient/tls.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@ def identity(self, cert_pem: Union[str, bytes], key_pem: Union[str, bytes]) -> "
c.authenticated = True
return c

def identity_from_path(self, path : str) -> "TlsConfig":
@classmethod
def identity_from_path(cls, path : str) -> "TlsConfig":
c = TlsConfig()
c.inner = self.inner.identity_from_path(path)
c.ca = self.ca
c.inner = c.inner.identity_from_path(path)
c.ca = c.ca
logger.debug("Authenticating TLS identity")
c.authenticated = True
return c
Expand Down

0 comments on commit c76fef8

Please sign in to comment.