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

Add support for asserting that all given certificates are present for a specified site #702

Open
atc0005 opened this issue Nov 14, 2023 · 1 comment
Assignees
Milestone

Comments

@atc0005
Copy link
Owner

atc0005 commented Nov 14, 2023

Given:

  • 1 or more certificate files (leaf, intermediates bundle)
  • target server (URL or explicit server / port pair)

Expect:

  • all that all certificates are offered by server at the specified port / hostname (or IP Address)
  • (optionally) all specified certificates offered by the server are in the given order
@atc0005 atc0005 added this to the Future milestone Nov 14, 2023
@atc0005 atc0005 self-assigned this Nov 14, 2023
@atc0005
Copy link
Owner Author

atc0005 commented Nov 14, 2023

The use for this feature surfaced during some troubleshooting earlier this AM.

An attempt to import a certificate bundle (leaf + two intermediates) failed for an IIS system resulting in just the leaf certificate offered to clients.

Using lscert it was clear that only the leaf cert was offered, but it was not immediately clear that the certificate offered was the same one included in the imported certificate bundle (and not a previous one being replaced with sufficient lifetime to avoid triggering expiration warnings).

Ideally, I could have used a flag to specify the cert file and one or more other flags to specify the target server to evaluate along with any specific cert chain requirements (ordering, presence of all certs from bundle, etc.).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant