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

improve: include the server TLS CA in the chain #2444

Merged
merged 2 commits into from
Jul 5, 2022

Conversation

dnephin
Copy link
Contributor

@dnephin dnephin commented Jun 29, 2022

Summary

Branched from #2401

This ended up being easier than I thought. By adding the CA cert to the chain returned by the server the client side error already has the right cert. Also log the CA fingerprint in the server on startup so that it is visible in logs.

Resolves #2362

Copy link
Collaborator

@BruceMacD BruceMacD left a comment

Choose a reason for hiding this comment

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

Nice and simple 👍

Comment on lines +625 to +597
title := "Certificate"
if cert.IsCA {
title = "Certificate Authority"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I pushed this one more small change. To indicate in the prompt if the user is trusting a leaf cert or a CA.

@dnephin dnephin force-pushed the dnephin/server-tls-config-2 branch from e10b58f to 2a51a80 Compare July 4, 2022 15:44
@dnephin dnephin requested a review from mxyng as a code owner July 4, 2022 15:44
@dnephin dnephin force-pushed the dnephin/server-tls-config-3 branch from a7b1704 to 865bd5a Compare July 4, 2022 15:49
@dnephin dnephin force-pushed the dnephin/server-tls-config-2 branch from 2a51a80 to 8d63f54 Compare July 4, 2022 15:58
@dnephin dnephin force-pushed the dnephin/server-tls-config-3 branch from 865bd5a to 072d8a3 Compare July 4, 2022 16:01
@dnephin dnephin force-pushed the dnephin/server-tls-config-2 branch from 8d63f54 to 4dc9598 Compare July 4, 2022 21:33
dnephin added 2 commits July 4, 2022 18:46
So that the client can trust the CA instead of the leaf cert.
To say Certificate Authority if the cert is a CA
@dnephin dnephin force-pushed the dnephin/server-tls-config-3 branch from 072d8a3 to a56d37a Compare July 4, 2022 22:47
Base automatically changed from dnephin/server-tls-config-2 to main July 5, 2022 21:59
@dnephin dnephin merged commit d759cb5 into main Jul 5, 2022
@dnephin dnephin deleted the dnephin/server-tls-config-3 branch July 5, 2022 22:03
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.

server: improve TLS certificate generation
2 participants