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

Use Server.Hostname instead of os.Hostname() in generating CA #303

Closed
haoming29 opened this issue Oct 30, 2023 · 0 comments · Fixed by #356
Closed

Use Server.Hostname instead of os.Hostname() in generating CA #303

haoming29 opened this issue Oct 30, 2023 · 0 comments · Fixed by #356
Labels
bug Something isn't working
Milestone

Comments

@haoming29
Copy link
Contributor

We generate the CA using os.Hostname(); However, when we set Server.Hostname different from os.Hostname, there will be TLS error saying the CA was not issued for the host. Thus, we want to read hostname from config.

hostname, err := os.Hostname()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants