holster icon indicating copy to clipboard operation
holster copied to clipboard

Fix and enable consul.TestNewClientTLS

Open vtopc opened this issue 2 years ago • 0 comments

=== 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 avatar Dec 20 '22 12:12 vtopc