MCPcopy Create free account
hub / github.com/celery/celery / FSCertStore

Class FSCertStore

celery/security/certificate.py:102–115  ·  view source on GitHub ↗

File system certificate store.

Source from the content-addressed store, hash-verified

100
101
102class FSCertStore(CertStore):
103 """File system certificate store."""
104
105 def __init__(self, path: str) -> None:
106 super().__init__()
107 if os.path.isdir(path):
108 path = os.path.join(path, '*')
109 for p in glob.glob(path):
110 with open(p) as f:
111 cert = Certificate(f.read())
112 if cert.has_expired():
113 raise SecurityError(
114 f'Expired certificate: {cert.get_id()!r}')
115 self.add_cert(cert)

Callers 2

test_initMethod · 0.90
register_authFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_initMethod · 0.72