Skip to content

Conversation

mmanes
Copy link
Contributor

@mmanes mmanes commented Dec 13, 2022

Summary:
Add support for intermediate X.509 certificates on TLS listener.

Fix:

  • When loading PEM certificates from string data, fully parse the content to include any intermediate certificates in the file. The intermediate certificates will be sent to the clients during the SSL negotiation and will be validated by the client.
  • Expose new constructors that accept Certificate[]s to supply a fully-created certificate chain.

Related:

Bumped generated certificate versions to v3 to allow for X509v3 extensions.
…ath up to a root.

Refactor HTTPListenerConfiguration to use a certificateChain by default while preserving the old behavior.
@mmanes mmanes requested review from voidmain and robotdan December 13, 2022 23:38
Copy link
Member

@voidmain voidmain left a comment

Choose a reason for hiding this comment

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

Don't forget to update the version in build.savant. This looks like a compatible change, so 0.1.11 should be fine for SemVer compatibility.

@mmanes mmanes requested a review from andrewpai December 16, 2022 16:24
Copy link
Member

@robotdan robotdan 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, just a few comments.

* Reverted splitting of line in README.
* Added JavaDocs.
* Fix non-backwards compatible change of parseCertificate returning the first 're-ordered' certificate, rather than first certificate in PEM.
* Reverted parseDERFromPEM to original state. It is now only used for parsing keys.
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.

3 participants