-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
go 1.15 cert failed: x509: certificate relies on legacy Common Name field, use SANs or temporarily enable Common Name matching with #4945
Comments
@wenerme Okay. Just to confirm, This error occured because the docs mentioned generating certs without the alternate DNS name fields, which were used with k3s that was compiled with go 1.15 (not meaning the official k3s switched over to 1.15). Does that sound correct? |
@Pothulapati yes, but I use alpine edge branch k3s, which is compiled by go 1.15. |
@wenerme My expectation with K8s is that this go 1.15 change will not be propagated into the k8s 1.17, 1.18 changes as its a breaking change but will be from 1.19 (I could be wrong here) and was expecting the same with k3s. However, I will raise a PR to update the docs to make generation of certs have the alternate dns name field. |
@Pothulapati Thanks, 1.19 will release soon, using k3s can get 1.19 very quick. |
@wenerme I tried replicating this issue on the latest edge with Kubernetes 1.19 but I could not replicate this, as the certs generated during Helm installation do not reach the Kubernetes server, and is used only in Linkerd components which are not 1.15 yet, and hence work fine. (Once we move Linkerd to go 1.15, we will have to update the docs as the linkerd components would fail then as there are no fields.) You seem to have run into this error because you are using the stable version of Linkerd which did not get the fix. Try using the latest edge and I don't think this error will occur. |
I'll try next stable as soon as released. |
@wenerme Closing this issue, but feel free to re-open it if you run into the same! |
Bug Report
What is the issue?
golang/go#39568
API fail
Proxy injector failed
failed with
failed with
How can it be reproduced?
use k3s or k8s compiled with go 1.15
Logs, error output, etc
above
linkerd check
outputEnvironment
Possible solution
update cert guide
Additional context
The text was updated successfully, but these errors were encountered: