GoPostStuff icon indicating copy to clipboard operation
GoPostStuff copied to clipboard

TLS certificate check fails

Open twiddern opened this issue 10 years ago • 5 comments

Hi,

the check for a valid TLS certificate fails

2014/11/30 16:18:59 INFO [FARMAMS] Starting 20 connections 2014/11/30 16:18:59 CRITICAL [FARMAMS] Error while connecting: tls: either ServerName or InsecureSkipVerify must be specified in the tls.Config 2014/11/30 16:18:59 CRITICAL [FARMAMS] Error while connecting: tls: either ServerName or InsecureSkipVerify must be specified in the tls.Config

So I had a look into the https://github.com/madcowfred/GoPostStuff/blob/master/simplenntp/simplenntp.go but there's only the InsecureSkipVerify mentioned. ServerName is never mentioned to test. http://golang.org/pkg/crypto/tls/#Conn

twiddern avatar Nov 30 '14 15:11 twiddern

Add 'InsecureSSL=on' to the [server] block in your config?

madcowfred avatar Feb 16 '15 02:02 madcowfred

Yup, but this should be only a workaround. It would be much better to validate the certificate

twiddern avatar Feb 16 '15 07:02 twiddern

Is the certificate actually valid? I didn't run into any issues testing with errrr Newshosting whenever I was testing TLS.

madcowfred avatar Feb 16 '15 07:02 madcowfred

@madcowfred Yes, it fails, yes the SSL cert is valid.

EDIT:- For reference, here's my configuration:- https://paste.debian.net/plainh/5a5c0c19

You don't need valid credentials to hit the error (As obviously authentication is done above the encryption layer, which is never established).

tYGjQCsvVI avatar May 10 '15 16:05 tYGjQCsvVI

Yup I totally forgot this issue

twiddern avatar May 10 '15 16:05 twiddern