Skip to content

Commit bd1afd9

Browse files
committed
fix: use of proxyLocation with DISET
1 parent 715ff8b commit bd1afd9

File tree

1 file changed

+3
-1
lines changed
  • src/DIRAC/Core/DISET/private/Transports/SSL

1 file changed

+3
-1
lines changed

src/DIRAC/Core/DISET/private/Transports/SSL/M2Utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,9 @@ def getM2SSLContext(ctx=None, **kwargs):
116116
# CHRIS: I think clientMode was just an internal of pyGSI implementation
117117
# if kwargs.get('clientMode', False) and not kwargs.get('useCertificates', False):
118118
# if not kwargs.get('useCertificates', False):
119-
if kwargs.get("bServerMode", False) or kwargs.get("useCertificates", False):
119+
if kwargs.get("bServerMode", False) or (
120+
kwargs.get("useCertificates", False) and not kwargs.get("proxyLocation", False)
121+
):
120122
# Server mode always uses hostcert
121123
__loadM2SSLCTXHostcert(ctx)
122124

0 commit comments

Comments
 (0)