diff options
author | Alex <register-github@alex-graf.de> | 2016-04-28 22:22:33 +0000 |
---|---|---|
committer | Jakob Borg <jakob@nym.se> | 2016-04-28 22:22:33 +0000 |
commit | 953482de530879b0f9bb9a68805b5e154cba892a (patch) | |
tree | 3abfa39e318e0894be204ab791c6a4dc463f0085 | |
parent | 8cf3a7aedadec0f9807ce86c22941cad372967ca (diff) |
cmd/stvanity: x509.GenerateCertificate requires pointer for public key
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3022
-rw-r--r-- | cmd/stvanity/main.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/stvanity/main.go b/cmd/stvanity/main.go index 2454205ded..4fc84b6beb 100644 --- a/cmd/stvanity/main.go +++ b/cmd/stvanity/main.go @@ -101,7 +101,7 @@ func generatePrefixed(prefix string, count *int64, found chan<- result, stop <-c default: } - derBytes, err := x509.CreateCertificate(rand.Reader, &template, &template, priv.PublicKey, priv) + derBytes, err := x509.CreateCertificate(rand.Reader, &template, &template, &priv.PublicKey, priv) if err != nil { fmt.Println(err) os.Exit(1) |