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

Function _new_subject

tests/certs/gen.py:13–19  ·  view source on GitHub ↗
(**subject)

Source from the content-addressed store, hash-verified

11
12
13def _new_subject(**subject):
14 return x509.Name(
15 [
16 x509.NameAttribute(getattr(oid.NameOID, key.upper()), value)
17 for key, value in subject.items()
18 ]
19 )
20
21
22def _new_cert(

Callers 2

_new_certFunction · 0.85
new_csrFunction · 0.85

Calls 1

upperMethod · 0.80

Tested by

no test coverage detected