schrodinger.application.licensing.licserver.server module¶
Provides APIs for license server management, mainly intended for admins.
Copyright Schrodinger, LLC. All rights reserved.
- schrodinger.application.licensing.licserver.server.licserver_dir(env: Optional[MutableMapping] = None) str ¶
Returns location for the licserver directory.
This is the location where the license server configuration is stored.
- Parameters
env – looks up non-default configuration via environment. If None, uses os.environ.
- schrodinger.application.licensing.licserver.server.get_server_tls_names(server_address: str, *, logger: logging.Logger) set[str] ¶
Query the server for the hostnames on its non-expired TLS certificates.
- Parameters
server_address – the server address to query
logger – logger to use for messages
- Returns
a list of lowercase TLS names
- Raises
exceptions.TLSVerifyError – if the server is unreachable or the output is not as expected