Skip to content
This repository has been archived by the owner on Aug 25, 2021. It is now read-only.

Remove single quotes in TLS Creation #536

Closed
wants to merge 1 commit into from

Conversation

stokkie90
Copy link
Contributor

When enabling TLS got the following error in the consul-server-acl-init Job:

2020-07-10T08:48:47.070317259Z 2020-07-10T08:48:47.070Z [ERROR] Failure: calling /agent/self to get datacenter: err="Get "https://consul-server-0.consul-server.consul.svc:8501/v1/agent/self": x509: certificate is valid for consul-server, *.consul-server, '*.consul-server.consul', '*.consul-server.consul.svc', *.server.dc1.consul, server.dc1.consul, localhost, not consul-server-0.consul-server.consul.svc"
2020-07-10T08:48:47.07034817Z 2020-07-10T08:48:47.070Z [INFO]  Retrying in 1s

After digging in, I noticed the Cert that is being generated contains single quotes. and that's why it wont match.

DNS Name: consul-server
DNS Name: *.consul-server
DNS Name: '*.consul-server.consul'  <------------
DNS Name: '*.consul-server.consul.svc'  <------------
DNS Name: *.server.dc1.consul
DNS Name: server.dc1.consul
DNS Name: localhost
IP Address: 127.0.0.1

@hashicorp-cla
Copy link

hashicorp-cla commented Jul 10, 2020

CLA assistant check
All committers have signed the CLA.

@lkysow lkysow added the bug Something isn't working label Jul 10, 2020
@lkysow
Copy link
Member

lkysow commented Jul 10, 2020

Thanks! I've merged this with #538

@lkysow lkysow closed this Jul 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants