]> Cypherpunks repositories - gostls13.git/commit
crypto/tls: update ExampleDial with a valid root
authorJohan Jansson <johan.jansson@iki.fi>
Wed, 1 Jan 2020 16:48:22 +0000 (18:48 +0200)
committerFilippo Valsorda <filippo@golang.org>
Fri, 21 Feb 2020 23:20:22 +0000 (23:20 +0000)
commitd67d044310bc5cc1c26b60caf23a58602e9a1946
tree6ef38851fd5179cd9b5ac45f707de5b4d3c9712e
parent4045de378b766eba80151f15945a31be96d77a7c
crypto/tls: update ExampleDial with a valid root

When run as a separate program, the code in ExampleDial panicked due to
an expired certificate. Fixed this problem by replacing the expired
certificate with a valid one.

Also added a comment in the certificate to give a hint about why it
might fail in the future.

Fixes #35706

Change-Id: I3d300f7bccae050e4b73ded28b8029aa04b480bd
Reviewed-on: https://go-review.googlesource.com/c/go/+/212601
Run-TryBot: Filippo Valsorda <filippo@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Filippo Valsorda <filippo@golang.org>
src/crypto/tls/example_test.go