@@ -166,11 +166,21 @@ def main():
166166 if 'TOOL_DEBUG' not in htcondor .param :
167167 htcondor .param ['TOOL_DEBUG' ] = "D_ALL D_CATEGORY"
168168
169- # Check for existence of host cert/key pair
170- for pki in 'cert' , 'key' :
171- pki_path = '/etc/grid-security/host%s.pem' % pki
172- if not os .path .exists (pki_path ):
173- logging .error ('Could not find host %s at %s' , pki , pki_path )
169+ # Advertise to the central collector with SSL (SOFTWARE-3940)
170+ htcondor .param ['SEC_CLIENT_AUTHENTICATION_METHODS' ] = 'SSL'
171+
172+ # Set SSL client config if not defined
173+ if 'AUTH_SSL_CLIENT_CERTFILE' not in htcondor .param :
174+ htcondor .param ['AUTH_SSL_CLIENT_CERTFILE' ] = '/etc/grid-security/xrd/xrdcert.pem'
175+ if 'AUTH_SSL_CLIENT_KEYFILE' not in htcondor .param :
176+ htcondor .param ['AUTH_SSL_CLIENT_KEYFILE' ] = '/etc/grid-security/xrd/xrdkey.pem'
177+ if 'AUTH_SSL_CLIENT_CADIR' not in htcondor .param :
178+ htcondor .param ['AUTH_SSL_CLIENT_CADIR' ] = '/etc/grid-security/certificates'
179+
180+ # Check for existence of xrootd cert/key pair
181+ for certfile in htcondor .param ['AUTH_SSL_CLIENT_CERTFILE' ], htcondor .param ['AUTH_SSL_CLIENT_KEYFILE' ]:
182+ if not os .path .exists (certfile ):
183+ logging .error ('Could not find client SSL file %s' , certfile )
174184 sys .exit (1 )
175185
176186 scr = StashCacheReporter (cache_path = args .cache_path , collectors = args .collectors ,
0 commit comments