aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorGibheer <gibheer@gmail.com>2015-03-23 09:43:20 +0100
committerGibheer <gibheer@gmail.com>2015-03-23 09:43:20 +0100
commit885340ef8f27f81c626626798cdbcd63e2f992b6 (patch)
treed90f5ec96e19a8cafa4660e2dc81f329dd2bb491 /main.go
parent97baed49b85761e96562d259db2624eba43d91df (diff)
rename FlagCertificateData
This makes it easier to distinguish between the csr data and cert data.
Diffstat (limited to 'main.go')
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index 42ecc92..ba8ee0a 100644
--- a/main.go
+++ b/main.go
@@ -110,7 +110,7 @@ func create_sign_request(cmd *Command, args []string) {
crash_with_help(cmd, ErrorFlagInput, "Flags invalid: %s", err)
}
- csr, err := FlagCertificateData.ToCertificateRequest(FlagPrivateKey)
+ csr, err := FlagCertificateRequestData.ToCertificateRequest(FlagPrivateKey)
if err != nil { crash_with_help(cmd, ErrorProgram, "Could not create certificate sign request: %s", err) }
pem_block, err := csr.MarshalPem()
if err != nil { crash_with_help(cmd, ErrorProgram, "Error when marshalling to pem: %s", err) }