-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix .onion tests to only apply to EV certificates (#449)
Before this change, ZLint would reject .onion names in non-EV certs via the `lint_san_dns_name_onion_not_ev_cert` lint, and if that was suppressed, then complain about the missing Tor Service Descriptor extension. As of CA/Browser Forum Ballot SC27, it's allowed for v3 onion names to appear in DV/OV/IV certificates, and the Tor Service Descriptor extension is neither required nor prohibited for these. This change corrects the Tor Service Descriptor tests to properly account for it being mandatory for EV, while optional for DV/OV/IV. This does not introduce new lints to ensure that the address is itself a well-formed V2 (if EV) or V3 (all types) address, which will come in a follow-up change. Closes #440
- Loading branch information
Showing
8 changed files
with
182 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
Certificate: | ||
Data: | ||
Version: 3 (0x2) | ||
Serial Number: 31337 (0x7a69) | ||
Signature Algorithm: sha256WithRSAEncryption | ||
Issuer: CN = Zmap Onion CA | ||
Validity | ||
Not Before: Jun 2 15:17:12 2017 GMT | ||
Not After : Mar 2 15:17:12 2018 GMT | ||
Subject: CN = zmap.io | ||
Subject Public Key Info: | ||
Public Key Algorithm: rsaEncryption | ||
RSA Public-Key: (512 bit) | ||
Modulus: | ||
00:e7:b5:d2:75:b1:04:c6:24:e7:b2:1f:b1:22:2b: | ||
30:35:e9:ae:d8:b4:40:a2:34:19:01:80:a4:2e:a8: | ||
0a:de:43:49:3d:70:a2:22:0a:a8:51:bd:9b:13:fb: | ||
6e:cc:60:65:88:32:fc:33:21:06:4d:a3:27:fe:b0: | ||
75:80:cc:d4:df | ||
Exponent: 65537 (0x10001) | ||
X509v3 extensions: | ||
X509v3 Extended Key Usage: | ||
TLS Web Server Authentication, TLS Web Client Authentication | ||
X509v3 Basic Constraints: critical | ||
CA:FALSE | ||
X509v3 Subject Alternative Name: | ||
DNS:zmap.io, DNS:zmap.onion | ||
X509v3 Certificate Policies: | ||
Policy: 1.3.6.1.4.1.36305.2 | ||
|
||
Signature Algorithm: sha256WithRSAEncryption | ||
30:f7:da:b6:a8:15:e3:d9:3a:aa:56:9f:88:06:ea:ae:5e:75: | ||
58:d5:7c:ea:31:b7:f2:a5:fe:e8:9c:68:f8:0a:6f:64:d1:f3: | ||
10:53:48:56:55:c6:5c:20:04:bf:b1:44:6a:69:1d:d5:fb:8e: | ||
57:99:2a:87:1f:b0:d7:ae:a8:20 | ||
-----BEGIN CERTIFICATE----- | ||
MIIBgzCCAS2gAwIBAgICemkwDQYJKoZIhvcNAQELBQAwGDEWMBQGA1UEAxMNWm1h | ||
cCBPbmlvbiBDQTAeFw0xNzA2MDIxNTE3MTJaFw0xODAzMDIxNTE3MTJaMBIxEDAO | ||
BgNVBAMTB3ptYXAuaW8wXDANBgkqhkiG9w0BAQEFAANLADBIAkEA57XSdbEExiTn | ||
sh+xIiswNemu2LRAojQZAYCkLqgK3kNJPXCiIgqoUb2bE/tuzGBliDL8MyEGTaMn | ||
/rB1gMzU3wIDAQABo2cwZTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIw | ||
DAYDVR0TAQH/BAIwADAeBgNVHREEFzAVggd6bWFwLmlvggp6bWFwLm9uaW9uMBYG | ||
A1UdIAQPMA0wCwYJKwYBBAGCm1ECMA0GCSqGSIb3DQEBCwUAA0EAMPfatqgV49k6 | ||
qlafiAbqrl51WNV86jG38qX+6Jxo+ApvZNHzEFNIVlXGXCAEv7FEamkd1fuOV5kq | ||
hx+w166oIA== | ||
-----END CERTIFICATE----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
Certificate: | ||
Data: | ||
Version: 3 (0x2) | ||
Serial Number: 2050924719016116738 (0x1c76592a6a060202) | ||
Signature Algorithm: sha256WithRSAEncryption | ||
Issuer: CN = zlint test 6fb5f7 | ||
Validity | ||
Not Before: Mar 28 00:00:00 2020 GMT | ||
Not After : Mar 28 00:00:00 2021 GMT | ||
Subject: CN = example.test | ||
Subject Public Key Info: | ||
Public Key Algorithm: rsaEncryption | ||
RSA Public-Key: (2048 bit) | ||
Modulus: | ||
00:d3:cf:55:71:96:a8:51:60:82:3d:12:84:61:82: | ||
01:67:64:d8:38:07:b7:93:7b:d1:40:c3:67:cd:dd: | ||
b0:bc:84:67:38:65:5c:69:91:33:30:84:6c:38:ae: | ||
65:c5:5f:02:39:7a:38:f1:55:9d:79:57:b8:75:47: | ||
07:55:63:9e:ff:21:a7:56:8b:be:9c:99:88:86:f9: | ||
36:64:2b:ac:a1:d8:7c:31:ad:c5:59:1e:c1:b3:06: | ||
53:d5:77:27:39:d6:68:a3:c6:5c:65:c3:d8:90:2d: | ||
2b:bd:9d:c4:39:9c:3f:53:53:af:1b:9c:6b:0f:3e: | ||
04:96:dd:40:7a:21:29:eb:76:e8:2c:95:7b:73:da: | ||
65:d0:cc:a4:51:cc:f7:6d:4c:d7:8c:e6:d8:bf:20: | ||
d9:01:a6:a4:b3:35:60:ac:c2:04:d4:02:d7:1c:8d: | ||
71:62:76:a5:10:4c:36:bf:16:c2:be:1d:71:45:95: | ||
66:17:32:d0:06:94:67:36:90:db:20:53:36:c4:55: | ||
5c:bb:cb:9c:68:29:43:b6:76:11:da:6e:c2:6c:da: | ||
ae:1c:57:c6:13:a9:2e:c0:cb:8d:de:2f:19:24:79: | ||
d8:28:83:27:5d:29:e9:4a:f7:3b:04:5a:6c:db:c9: | ||
bb:00:e1:30:e0:8e:a1:cf:92:1c:87:77:ab:82:29: | ||
66:f1 | ||
Exponent: 65537 (0x10001) | ||
X509v3 extensions: | ||
X509v3 Key Usage: critical | ||
Digital Signature, Key Encipherment | ||
X509v3 Extended Key Usage: | ||
TLS Web Server Authentication, TLS Web Client Authentication | ||
X509v3 Basic Constraints: critical | ||
CA:FALSE | ||
X509v3 Subject Alternative Name: | ||
DNS:l5satjgud6gucryazcyvyvhuxhr74u6ygigiuyixe3a6ysis67ororad.onion, DNS:example.test | ||
Signature Algorithm: sha256WithRSAEncryption | ||
aa:ea:24:45:7a:f2:84:6f:bd:0f:43:63:0d:d0:6f:56:cb:43: | ||
1a:81:b3:38:fa:79:28:f7:16:1b:a7:6a:79:6d:05:98:46:3f: | ||
27:fa:21:8a:0d:2d:8c:43:ba:6c:e9:4f:7a:60:fd:fa:9d:e7: | ||
cf:f4:63:e6:ce:25:76:64:59:d8:49:29:50:d1:88:90:fb:3d: | ||
06:77:de:4c:25:e5:3a:87:ff:1e:80:c6:18:11:ca:69:c5:6b: | ||
eb:d4:e7:a7:76:ca:45:5c:77:ec:46:ea:c9:55:6f:4b:69:cb: | ||
71:9d:90:24:c7:3f:42:13:97:54:5e:ef:aa:d6:87:89:97:1b: | ||
6e:cb:c3:53:61:b0:1c:1b:5e:7c:82:5f:2f:bc:d5:4b:b5:a9: | ||
5b:db:36:05:99:7a:26:2b:7d:88:12:a1:6a:29:28:84:86:62: | ||
df:dd:92:eb:eb:5e:28:a1:47:8a:a2:f1:8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uggxleGFtcGxlLnRlc3Qw | ||
DQYJKoZIhvcNAQELBQADggEBAKrqJEV68oRvvQ9DYw3Qb1bLQxqBszj6eSj3Fhun | ||
anltBZhGPyf6IYoNLYxDumzpT3pg/fqd58/0Y+bOJXZkWdhJKVDRiJD7PQZ33kwl | ||
5TqH/x6AxhgRymnFa+vU56d2ykVcd+xG6slVb0tpy3GdkCTHP0ITl1Re76rWh4mX | ||
G27Lw1NhsBwbXnyCXy+81Uu1qVvbNgWZeiYrfYgSoWopKISGYt/dkuvrXiihR4qi | ||
8Y6kUCDUIYHhk+G0eiwPlqzYB9jMOcmTEX+VxZqRuAnLBn8tJG9TFENo2DtNMS9o | ||
zYo0Em3VVwJh5EtyMdEs8TzbhU5r9jKMiBoioLIRDiVNvn4= | ||
-----END CERTIFICATE----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters