MCPcopy Create free account
hub / github.com/MagicStack/asyncpg / new_cert

Function new_cert

tests/certs/gen.py:199–216  ·  view source on GitHub ↗
(
    path,
    ca_cert_key_pair,
    password=None,
    is_issuer=False,
    is_client=False,
    private_key=None,
    **subject,
)

Source from the content-addressed store, hash-verified

197
198
199def new_cert(
200 path,
201 ca_cert_key_pair,
202 password=None,
203 is_issuer=False,
204 is_client=False,
205 private_key=None,
206 **subject,
207):
208 cert_key_pair = _new_cert(
209 issuer=ca_cert_key_pair,
210 is_issuer=is_issuer,
211 is_client=is_client,
212 private_key=private_key,
213 **subject,
214 )
215 _write_cert(path, cert_key_pair, password)
216 return cert_key_pair
217
218
219def new_csr(path, private_key, **subject):

Callers 1

mainFunction · 0.85

Calls 2

_new_certFunction · 0.85
_write_certFunction · 0.85

Tested by

no test coverage detected