Skip to content

Commit 400566b

Browse files
committed
fix: remove protocol and endpoints from CN
1 parent 5decc72 commit 400566b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pyeudiw/tests/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@
240240
"config": {
241241
"client_id": f"{BASE_URL}/OpenID4VP",
242242
"relying_party_certificate_chains_by_ca":{
243-
"ca.example.com": gen_chain(leaf_cn=f"{BASE_URL}/OpenID4VP"),
243+
"ca.example.com": gen_chain(leaf_cn="example.com"),
244244
},
245245
"private_keys": [
246246
{

pyeudiw/tests/x509/test_x509.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717

1818
def gen_chain(
1919
date: datetime = datetime.now(),
20-
ca_cn: str = "CN=https://ca.example.com, O=Example CA, C=IT",
20+
ca_cn: str = "CN=ca.example.com, O=Example CA, C=IT",
2121
ca_dns: str = "ca.example.com",
22-
leaf_cn: str = "CN=https://leaf.example.com/OpenID4VP, O=Example Leaf, C=IT",
22+
leaf_cn: str = "CN=eaf.example.com, O=Example Leaf, C=IT",
2323
leaf_dns: str = "leaf.example.org",
24-
leaf_uri: str = "https:/leaf.example.org/OpenID4VP",
24+
leaf_uri: str = "leaf.example.org",
2525
leaf_private_key: rsa.RSAPrivateKey = None
2626
) -> list[bytes]:
2727
# Generate a private key for the CA

0 commit comments

Comments
 (0)