@@ -304,7 +304,7 @@ def do_local_jwk(self, filename):
304
304
305
305
:param filename: Name of the file from which the JWKS should be loaded
306
306
"""
307
- LOGGER .debug ("Reading JWKS from %s" , filename )
307
+ LOGGER .info ("Reading local JWKS from %s" , filename )
308
308
with open (filename ) as input_file :
309
309
_info = json .load (input_file )
310
310
if 'keys' in _info :
@@ -322,7 +322,7 @@ def do_local_der(self, filename, keytype, keyusage=None, kid=''):
322
322
:param keytype: Presently 'rsa' and 'ec' supported
323
323
:param keyusage: encryption ('enc') or signing ('sig') or both
324
324
"""
325
- LOGGER .debug ("Reading DER from %s" , filename )
325
+ LOGGER .info ("Reading local DER from %s" , filename )
326
326
key_args = {}
327
327
_kty = keytype .lower ()
328
328
if _kty in ['rsa' , 'ec' ]:
@@ -354,6 +354,7 @@ def do_remote(self):
354
354
# if self.verify_ssl is not None:
355
355
# self.httpc_params["verify"] = self.verify_ssl
356
356
357
+ LOGGER .info ("Reading remote JWKS from %s" , self .source )
357
358
try :
358
359
LOGGER .debug ('KeyBundle fetch keys from: %s' , self .source )
359
360
httpc_params = self .httpc_params .copy ()
@@ -388,9 +389,11 @@ def do_remote(self):
388
389
389
390
elif _http_resp .status_code == 304 : # Not modified
390
391
LOGGER .debug ("%s not modified since %s" , self .source , self .last_remote )
391
- pass
392
+ self . time_out = time . time () + self . cache_time
392
393
393
394
else :
395
+ LOGGER .warning ("HTTP status %d reading remote JWKS from %s" ,
396
+ _http_resp .status_code , self .source )
394
397
raise UpdateFailed (
395
398
REMOTE_FAILED .format (self .source , _http_resp .status_code ))
396
399
self .last_updated = time .time ()
0 commit comments