diff options
| author | Kevin Burke <kev@inburke.com> | 2017-10-20 12:56:38 -0700 |
|---|---|---|
| committer | Filippo Valsorda <filippo@golang.org> | 2018-04-30 17:25:27 +0000 |
| commit | 4154727e1b125a7d3398c9cc143eb36343c82bcc (patch) | |
| tree | 35370d0450c541777cfda4584e7e31651884bd4e /src/runtime/stack_test.go | |
| parent | 3334eee400ad4dc202f53d3efa34fddb013f9c17 (diff) | |
| download | go-4154727e1b125a7d3398c9cc143eb36343c82bcc.tar.xz | |
crypto/tls: add examples for [Load]X509KeyPair
I was confused about how to start an HTTP server if the server
cert/key are in memory, not on disk. I thought it would be good to
show an example of how to use these two functions to accomplish that.
example-cert.pem and example-key.pem were generated using
crypto/tls/generate_cert.go.
Change-Id: I850e1282fb1c38aff8bd9aeb51988d21fe307584
Reviewed-on: https://go-review.googlesource.com/72252
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/runtime/stack_test.go')
0 files changed, 0 insertions, 0 deletions
