Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
13
def
_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
22
def
_new_cert(
Callers
2
_new_cert
Function · 0.85
new_csr
Function · 0.85
Calls
1
upper
Method · 0.80
Tested by
no test coverage detected