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

Fix and enable consul.TestNewClientTLS #151

Open
vtopc opened this issue Dec 20, 2022 · 0 comments
Open

Fix and enable consul.TestNewClientTLS #151

vtopc opened this issue Dec 20, 2022 · 0 comments

Comments

@vtopc
Copy link
Contributor

vtopc commented Dec 20, 2022

=== RUN   TestNewClientTLS
    config_test.go:26: 
        	Error Trace:	/home/runner/work/holster/holster/consul/config_test.go:26
        	Error:      	Received unexpected error:
        	            	Put "https://127.0.0.1:8501/v1/kv/test-key-tls": x509: certificate has expired or is not yet valid: current time 2022-12-20T12:40:42Z is after 2021-11-18T22:57:23Z
        	Test:       	TestNewClientTLS
--- FAIL: TestNewClientTLS (0.01s)

How to fix:
Update certificates?

openssl req -x509 -nodes -newkey rsa:2048 -keyout <key_file> -out <cert_file> -days 3650 -subj "/C=US/ST=TX/L=San Antonio/O=Mailgun/OU=Technology/CN=foobarserver"
@vtopc vtopc changed the title Fix consul.TestNewClientTLS Fix and enable consul.TestNewClientTLS Dec 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant