diff --git a/opennsa/setup.py b/opennsa/setup.py index f4cea1620ff31bc6ff9f41bab6c1c819c3facaf7..bfacc74e4f6910b41e1b8902eee04d41bfc883df 100644 --- a/opennsa/setup.py +++ b/opennsa/setup.py @@ -100,6 +100,7 @@ def setupBackend(backend_cfg, network_name, nrm_ports, parent_requester): def setupTLSContext(vc): # ssl/tls contxt if vc[config.TLS]: + log.message('setup for full client/server TLS mode') from opennsa.opennsaTlsContext import opennsa2WayTlsContext ctx_factory = opennsa2WayTlsContext( vc[config.KEY], vc[config.CERTIFICATE], vc[config.CERTIFICATE_DIR], vc[config.VERIFY_CERT]) @@ -110,11 +111,13 @@ def setupTLSContext(vc): 'certdir value {} is not a directory'.format(vc[config.CERTIFICATE_DIR])) if vc[config.KEY] and vc[config.CERTIFICATE]: # enable client authentication even when not in TLS mode + log.message('setup for client TLS mode with client authentication') from opennsa.opennsaTlsContext import opennsa2WayTlsContext ctx_factory = opennsa2WayTlsContext( vc[config.KEY], vc[config.CERTIFICATE], vc[config.CERTIFICATE_DIR], vc[config.VERIFY_CERT]) else: from opennsa.opennsaTlsContext import opennsaTlsContext + log.message('setup for client TLS mode without client authentication') ctx_factory = opennsaTlsContext( vc[config.CERTIFICATE_DIR], vc[config.VERIFY_CERT]) else: