Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lints: lint for upcoming Apple max cert lifetime policy. #417

Merged
merged 9 commits into from
Mar 17, 2020

Conversation

cpu
Copy link
Member

@cpu cpu commented Mar 11, 2020

A new e_tls_server_cert_valid_time_longer_than_398_days lint is added for the Apple source category (presently named lint.AppleCTPolicy, see #418).

This lint returns an error lint result if a server-auth certificate issued after Sept 1st, 2020 has a lifetime > 398 days. The lifetime is calculated as Apple specifies, e.g. "398 days is measured with a day being equal to 86,400 seconds.".

A warning result is returned if a certificate issued after Sept 1st, 2020 has a lifetime > 397 days and < 398 days. This matches Apple's SHOULD-equivalent recommendation to use a validity period <= 397 days in length.

See https://support.apple.com/en-us/HT211025 for more information.

Resolves #407

cpu added 2 commits March 11, 2020 13:35
A new `e_tls_server_cert_valid_time_longer_than_398_days` lint is added
for the Apple source category (presently named "AppleCTPolicy", see TODO
in code).

This lint returns an error lint result if a certificate issued after
Sept 1st, 2020 has a lifetime > 398 days.

A notice result is returned if a certificate issued after Sept 1st, 2020
has a lifetime > 397 days and < 398 days. This matches Apple's
recommendation to use a validity period <= 397 days in length.

See https://support.apple.com/en-us/HT211025 for more information.
@cpu cpu requested review from sleevi and zakird March 17, 2020 14:48
Copy link
Contributor

@sleevi sleevi left a comment

Choose a reason for hiding this comment

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

Looks good to me, but with a few nits

@cpu
Copy link
Member Author

cpu commented Mar 17, 2020

Looks good to me, but with a few nits

Thanks for the review @sleevi! I think it's ready for a second 🔍 when you have a chance.

Copy link
Contributor

@sleevi sleevi left a comment

Choose a reason for hiding this comment

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

Thanks! Looks good, I wasn't sure if @zakird wanted to look but I think you've got it all.

@zakird
Copy link
Member

zakird commented Mar 17, 2020 via email

@cpu
Copy link
Member Author

cpu commented Mar 17, 2020

Thanks all. I'll update the PR description and squash merge it momentarily.

@cpu cpu merged commit 83d24bd into zmap:master Mar 17, 2020
@cpu cpu deleted the cpu-apple-max-validity branch March 17, 2020 16:17
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.

Lint for Apple root program certificate lifetime restriction
3 participants