server: improve TLS certificate generation #2362
Labels
area/api
Issue or PR related to the Infra API.
kind/improvement
A report of a quality problem, or a change that addresses a quality problem.
Today we have a few problems with the TLS certificate generation in the server:
Proposal
x509.Ed25519
instead of RSA to reduce the generation time. We also need to add some kind of synchronization to solve SelfSignedOrLetsEncryptCert can race with itself, creating multiple primary keys and certs #2067.tls.Config.VerifyPeerCertificate
(instead of the cert we get back fromx509.UnknownAuthorityError
) to prompt for trust of the CA (instead of prompting for trust of the server certificate). Since the server certificate may change, but the CA remains across restarts, we need to trust the CA instead of the leaf cert.Related issues
The text was updated successfully, but these errors were encountered: