Permalink
Browse files

Update genkey

  • Loading branch information...
zachhuff386 committed Nov 20, 2016
1 parent 9ea8c95 commit 05b7b2e77b7729bf70fb5623637561546e5758bb
Showing with 4 additions and 2 deletions.
  1. +4 −2 signing/genkey.go
View
@@ -15,13 +15,15 @@ type GenKey struct {
func (g *GenKey) createConf() (path string, err error) {
path = filepath.Join(g.Root, "genkey")
err = utils.CreateWrite(path, "Key-Type: 1\n"+
err = utils.CreateWrite(path, "%no-protection\n"+
"Key-Type: 1\n"+
"Key-Length: 4096\n"+
"Subkey-Type: 1\n"+
"Subkey-Length: 4096\n"+
fmt.Sprintf("Name-Real: %s\n", g.Name)+
fmt.Sprintf("Name-Email: %s\n", g.Email)+
"Expire-Date: 0\n")
"Expire-Date: 0\n"+
"%commit\n")
if err != nil {
return
}

0 comments on commit 05b7b2e

Please sign in to comment.