(self, tdata)
| 462 | assert "is a certificate authority and not a leaf certificate" in caplog.text |
| 463 | |
| 464 | def test_special_character(self, tdata): |
| 465 | with open(tdata.path("mitmproxy/net/data/text_cert_with_comma"), "rb") as f: |
| 466 | d = f.read() |
| 467 | c = certs.Cert.from_pem(d) |
| 468 | |
| 469 | assert dict(c.issuer).get("O") == "DigiCert, Inc." |
| 470 | assert dict(c.subject).get("O") == "GitHub, Inc." |
| 471 | |
| 472 | def test_multi_valued_rdns(self, tdata): |
| 473 | subject = x509.Name( |