Hi, I've got code like:
client := &http.Client{} req, _ := http.NewRequest("GET", "https://localhost", nil) resp, err := client.Do(req) I believe that prior to Golang 1.6 or something like this this bailed out with err when the SSL certificate is not valid (expired or other things). That is: the app was running, while the cert was OK there was no error and once it expired there was an error. But now (1.7.3) it does not, when the app is running and the certificate expires, it does not make a `certificate expired' error. However, the app restart makes it to fail, I get `x509: certificate has expired or is not yet valid'. So the question is: how do I get the old behaviour: that is expired SSL certificate should generate en error without restarting my app. The complete code is here: https://github.com/chillum/jsonmon/blob/master/main.go#L349 Thanks. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.