mirror of
https://github.com/golang/go
synced 2024-11-22 02:24:41 -07:00
crypto/tls/generate_cert.go: fix misspelling of O_CREATE.
Fixes #1888. R=ken CC=golang-dev https://golang.org/cl/4515148
This commit is contained in:
parent
cb96d98b06
commit
a1d2cbf645
@ -59,7 +59,7 @@ func main() {
|
|||||||
certOut.Close()
|
certOut.Close()
|
||||||
log.Print("written cert.pem\n")
|
log.Print("written cert.pem\n")
|
||||||
|
|
||||||
keyOut, err := os.OpenFile("key.pem", os.O_WRONLY|os.O_CREAT|os.O_TRUNC, 0600)
|
keyOut, err := os.OpenFile("key.pem", os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0600)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Print("failed to open key.pem for writing:", err)
|
log.Print("failed to open key.pem for writing:", err)
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user