Skip to content

expand subject DN informational only lint#287

Merged
cpu merged 3 commits intozmap:masterfrom
tadukurow:expand-subject_dn-informational-lint
Jun 10, 2019
Merged

expand subject DN informational only lint#287
cpu merged 3 commits intozmap:masterfrom
tadukurow:expand-subject_dn-informational-lint

Conversation

@tadukurow
Copy link
Copy Markdown
Contributor

@tadukurow tadukurow commented Jun 6, 2019

Expanded the check for no metadata only in subject DN to check for subject DN fields containing no characters in a-Z0-9 or outside of ascii table. This catches more than just checking for ".", "-", " ". Also remove separate checks for serial and domainComponent as they are part of pkix.Names so separate checking was redundant.

This will help zlint catch issues that CABLint catches today such as
https://crt.sh/?id=106177929&opt=zlint,cablint,x509lint
https://crt.sh/?id=134328239&opt=cablint,zlint
https://crt.sh/?id=26408912&opt=cablint,zlint

As far as I know there aren't any combinations of characters outside of a-Z0-9 and UTF8 which wouldn't be described as metadata only. This assumption needs some scrutiny though.
The new check is still susceptible to UTF8 runes metadata only.

… ascii table. Also remove seperate checks for serial and domainComponent as they are part of pkix.Names
@cpu
Copy link
Copy Markdown
Member

cpu commented Jun 6, 2019

@tadukurow Can you resolve conflicts with master when you have a chance? I'll endeavour to give this a 🔍 in the next few days.

@tadukurow
Copy link
Copy Markdown
Contributor Author

@cpu did you mean rebase off master? because I don't see any conflicts

@cpu
Copy link
Copy Markdown
Member

cpu commented Jun 6, 2019

@cpu did you mean rebase off master? because I don't see any conflicts

Yup! I mis-read the Github status message. On the repositories I spend most of my time we don't have the "Require branches to be up to date before merging" checkbox checked and so only conflicts cause that kind of status block. Zlint requires all PRs be current with master.

Copy link
Copy Markdown
Member

@cpu cpu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @tadukurow, I don't have any feedback ☑️

@cpu cpu merged commit c65cea1 into zmap:master Jun 10, 2019
@tadukurow tadukurow deleted the expand-subject_dn-informational-lint branch June 11, 2019 13:50
@tadukurow
Copy link
Copy Markdown
Contributor Author

Thanks @cpu!

aaomidi pushed a commit to aaomidi/zlint that referenced this pull request Nov 29, 2022
…ng (zmap#298)

* backporting asn1, pkix to allow permissive parsing (zmap#284)

* forking from golang.org/x/crypto/cryptobyte to allow permissive parsing

* Allow permissive asn1 parsing on UTF8, integer and NameConstraints (zmap#287)

* Allow permissive asn1 parsing on UTF8, integer and NameConstraints

* Allow permissive asn1 parsing on UTF8, integer and NameConstraints, NumericString

* Allow permissive parsing: IA5, integer min len (zmap#289)

* Fix Name.String() to legacy behavior, permissive parsing asn1.IA5String (zmap#292)

* deps: update publicsuffix-go for 2021-05-11T10:35:34 UTC

* deps: update publicsuffix-go for 2021-05-13T08:40:11 UTC

* deps: update publicsuffix-go for 2021-05-21T08:41:21 UTC

* deps: update publicsuffix-go for 2021-05-27T09:03:28 UTC

* Allow permissive parsing: IA5, integer min len

* Fix Name.String() to legacy behavior

Co-authored-by: GitHub <[email protected]>

* Fix RDNSequence.String() to print user friendly names (zmap#294)

* Merge branch master into feature/parse_certs (zmap#296)

* deps: update publicsuffix-go for 2021-05-11T10:35:34 UTC

* deps: update publicsuffix-go for 2021-05-13T08:40:11 UTC

* deps: update publicsuffix-go for 2021-05-21T08:41:21 UTC

* deps: update publicsuffix-go for 2021-05-27T09:03:28 UTC

* deps: update publicsuffix-go for 2021-06-01T15:03:13 UTC

* Fix RDNSequence.String() to print user friendly names

* Porting ocsp package from the latest standard lib (zmap#279)

Co-authored-by: Zakir Durumeric <[email protected]>

* deps: update publicsuffix-go for 2021-06-07T12:03:41 UTC

Co-authored-by: GitHub <[email protected]>
Co-authored-by: Daniel McCarney <[email protected]>
Co-authored-by: Zakir Durumeric <[email protected]>

Co-authored-by: Benjamin Wireman <[email protected]>
Co-authored-by: GitHub <[email protected]>
Co-authored-by: Daniel McCarney <[email protected]>
Co-authored-by: Zakir Durumeric <[email protected]>
Co-authored-by: Jeff Cody <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants