Exemplo n.º 1
0
// NewEntity creates a new entity. It doesn't provide an option for comments.
func NewEntity(name, email, outFile string) (ne *openpgp.Entity, err error) {
	ne, err = openpgp.NewEntity(name, "", email, DefaultConfig)
	if err != nil {
		return
	}

	out, err := os.Create(outFile)
	if err != nil {
		ne = nil
		return
	}

	hdr := map[string]string{
		"Version": fmt.Sprintf("Keybase Go client (OpenPGP version %s)", Version),
	}

	keyOut, err := armor.Encode(out, openpgp.PrivateKeyType, hdr)
	if err != nil {
		ne = nil
		return
	}

	defer func() {
		keyOut.Close()
		out.Close()
	}()

	err = ne.SerializePrivate(keyOut, DefaultConfig)
	if err != nil {
		ne = nil
		return
	}

	return
}
// generate creates a GPG keypair and keyring tarballs
func (k *Key) generate() error {
	ent, err := openpgp.NewEntity(k.name, k.comment, k.email, nil)
	if err != nil {
		return err
	}

	//FIXME: how to not have subkeys otherwise?
	ent.Subkeys = nil

	k.entity = ent

	os.MkdirAll(k.dir, 0700)

	pubring, err := os.Create(filepath.Join(k.dir, "pubring.gpg"))
	if err != nil {
		return err
	}

	secring, err := os.Create(filepath.Join(k.dir, "secring.gpg"))
	if err != nil {
		return err
	}

	if err = ent.SerializePrivate(secring, nil); err != nil {
		return err
	}

	if err = ent.Serialize(pubring); err != nil {
		return err
	}
	k.writeKeyringJSON()
	return nil
}
Exemplo n.º 3
0
func loadThisNotaryInfo() {
	var privKeyArmor, pubKeyArmor string
	keyFile := os.Getenv("HOME") + "/.scramble/notary_privkey"
	keyBytes, err := ioutil.ReadFile(keyFile)
	if err != nil {
		log.Printf("Creating new keyfiles for notary at %s\n", keyFile)
		entity, _ := openpgp.NewEntity(
			"Notary",
			"Notary for "+GetConfig().SMTPMxHost+" Scramble Server",
			"support@"+GetConfig().SMTPMxHost,
			nil)
		privKeyArmor, pubKeyArmor, err = SerializeKeys(entity)
		err = ioutil.WriteFile(keyFile, []byte(privKeyArmor+"\n"+pubKeyArmor), 0600)
		if err != nil {
			panic(err)
		}
		hash := ComputePublicHash(pubKeyArmor)
		notaryInfo = &NotaryInfo{entity, pubKeyArmor, hash}
	} else {
		parts := regexKeyFile.FindStringSubmatch(string(keyBytes))
		if parts == nil {
			log.Panicf("Invalid keyfile %s.", keyFile)
		}
		privKeyArmor = parts[1]
		pubKeyArmor = parts[2]
		entity, err := ReadEntity(privKeyArmor)
		if err != nil {
			panic(err)
		}
		hash := ComputePublicHash(pubKeyArmor)
		notaryInfo = &NotaryInfo{entity, pubKeyArmor, hash}
	}

	log.Printf("Notary for this host loaded: %v@%v", GetNotaryInfo().Hash, GetConfig().SMTPMxHost)
}
Exemplo n.º 4
0
func generateNewKey(name, comment, email string, config *packet.Config) (*openpgp.Entity, error) {
	e, err := openpgp.NewEntity(name, comment, email, config)
	if err != nil {
		return nil, err
	}
	addSecretKey(e)
	return e, nil
}
Exemplo n.º 5
0
Arquivo: pgp.go Projeto: Novemburr/mig
func GenerateKeyPair(name, desc, email string) (pubkey, privkey []byte, fp string, err error) {
	defer func() {
		if e := recover(); e != nil {
			err = fmt.Errorf("GenerateKeyPair() -> %v", e)
		}
	}()
	// generate a private key
	ent, err := openpgp.NewEntity(name, desc, email, nil)
	if err != nil {
		panic(err)
	}
	// serialize the private key
	pkbuf := bytes.NewBuffer(nil)
	err = ent.SerializePrivate(pkbuf, nil)
	if err != nil {
		panic(err)
	}
	buf := bytes.NewBuffer(nil)
	ewrbuf, err := armor.Encode(buf, openpgp.PrivateKeyType, nil)
	if err != nil {
		panic(err)
	}
	_, err = ewrbuf.Write(pkbuf.Bytes())
	if err != nil {
		panic(err)
	}
	ewrbuf.Close()
	privkey = buf.Bytes()
	// serialize the public key
	pkbuf = bytes.NewBuffer(nil)
	err = ent.Serialize(pkbuf)
	if err != nil {
		panic(err)
	}
	buf = bytes.NewBuffer(nil)
	ewrbuf, err = armor.Encode(buf, openpgp.PublicKeyType, nil)
	if err != nil {
		panic(err)
	}
	_, err = ewrbuf.Write(pkbuf.Bytes())
	if err != nil {
		panic(err)
	}
	ewrbuf.Close()
	pubkey = buf.Bytes()
	// validate the public key and obtain a fingerprint from it
	fp, err = LoadArmoredPubKey(pubkey)
	if err != nil {
		panic(err)
	}
	return
}
Exemplo n.º 6
0
func main() {

	//openpgp.NewEntity("bussiere", "test", "*****@*****.**", nil)

	var entity *openpgp.Entity
	entity, err := openpgp.NewEntity("bussiere", "test", "*****@*****.**", nil)
	if err != nil {

	}

	var (
		buffer bytes.Buffer
	)

	entity.SerializePrivate(&buffer, nil)
	data := base64.StdEncoding.EncodeToString([]byte(buffer.String()))

	fmt.Printf("%q\n", data)

	buffer = bytes.Buffer
	entity.Serialize(&buffer)
	data2 := base64.StdEncoding.EncodeToString([]byte(buffer.String()))

	fmt.Printf("%q\n", data2)

	buffer = bytes.Buffer
	entity.PrivateKey.Serialize(&buffer)
	data3 := base64.StdEncoding.EncodeToString([]byte(buffer.String()))

	fmt.Printf("%q\n", data3)

	buffer = bytes.Buffer
	entity.PrimaryKey.Serialize(&buffer)
	data4 := base64.StdEncoding.EncodeToString([]byte(buffer.String()))

	fmt.Printf("%q\n", data4)

	//fmt.Printf(buffer.String())

	// "xcLYBFFBjX0BB/9iTV9vRbVIEr8g5/K1QOtDhwrn6S7DWkJwz5K64trO0LbBWHzAThjCb3yeZPMwl92ZyeQAKT4LW7gjXNc6YJeq

	//"xcLYBFFBjaMBCADg3+lpaFMBJGRwRzqaNcmV+JjcgIX+2ioz33XnLimith7WmvgrVtfwDM0rns+9RwD8+mjHkvpNyNxr3mBCGTCpKOEvX42UCp03IQEnI6d802CqEoHpBFCrXakzr245Df6kbbOaG3+5egXzUdHdHbjST0hrmzP58fAZ86Rp6TlgaDU+NR0ZCW1Vu1VB0CRJceSgtJ79yQ1WpP1qFCR3wyUMVrgmcVBQTIM/j9ET7rFjsJl92UIIMJPVCj9Wmq9j/h6vP5BP+AoanWfcXcCd13MZxl1iPmTUp8g1+R82n40+96kiNtTCrTrDI84s+tI1yrJJyOFgNEBk1RPEYUAF3ttRABEBAAEACACfVYgpK8ZEdOjFt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V7rH+4xcIDWWuhTwixYtKSizp/s6a0NSjeZShOXSXHpQGZlRm/oh52qgWRvaOMPJbu26JWzdxiS9ImYzvcdbhXnFd9+Uh24vmHiKWWfCl6AM3YaKM69BAD8pqmRnppOjA5uNqifsgpxfipdcCfGTNl36Q3RGoVMEdaQ1xM48mnUb3gTa8QuwyFtXxMR92mp6fkO/Je4mfD+3hQu0gosXwbv5sZzyP6sC7SVMqO1GpBAXu7nOwJ8qxUlm/e799qIlNgvCzl4VeS6uMJPT2AkaLM2YbSFE0GCJQQAwlU9sG1G6ApD3N/KTilIbUtV93Ka3+dHJ8Oxa5SGfAan3GZoNZnJnraiM8XqVadEiGSqAaWFJ1YyVnEXg3hytfXW6k7ef6cWrQ2yMmxxSIU9ZmsyAr6m8u1/pwLlbtnJ9S7wuIpqdM7GS2h0kSt6Cs/5omj2VIO50BJLQgL8/zFFycbATQRRQY2jAQgA4N/paWhTASRkcEc6mjXJlfiY3ICF/toqM9915y4porYe1pr4K1bX8AzNK57PvUcA/Ppox5L6Tcjca95gQhkwqSjhL1+NlAqdNyEBJyOnfNNgqhKB6QRQq12pM69uOQ3+pG2zmht/uXoF81HR3R240k9Ia5sz+fHwGfOkaek5YGg1PjUdGQltVbtVQdAkSXHkoLSe/ckNVqT9ahQkd8MlDFa4JnFQUEyDP4/RE+6xY7CZfdlCCDCT1Qo/VpqvY/4erz+QT/gKGp1n3F3AnddzGcZdYj5k1KfINfkfNp+NPvepIjbUwq06wyPOLPrSNcqyScjhYDRAZNUTxGFABd7bUQARAQAB"

}
Exemplo n.º 7
0
func main() {
	ent, err := openpgp.NewEntity("bob", "Bob's key", "*****@*****.**", nil)
	if err != nil {
		panic(err)
	}
	pkbuf := bytes.NewBuffer(nil)
	err = ent.SerializePrivate(pkbuf, nil)
	if err != nil {
		panic(err)
	}
	buf := bytes.NewBuffer(nil)
	ewrbuf, err := armor.Encode(buf, "PGP PRIVATE KEY BLOCK", nil)
	if err != nil {
		panic(err)
	}
	_, err = ewrbuf.Write(pkbuf.Bytes())
	if err != nil {
		panic(err)
	}
	ewrbuf.Close()
	fmt.Printf("%s\n", buf.Bytes())

	// serialize the public key
	pkbuf = bytes.NewBuffer(nil)
	err = ent.Serialize(pkbuf)
	if err != nil {
		panic(err)
	}
	buf = bytes.NewBuffer(nil)
	ewrbuf, err = armor.Encode(buf, openpgp.PublicKeyType, nil)
	if err != nil {
		panic(err)
	}
	_, err = ewrbuf.Write(pkbuf.Bytes())
	if err != nil {
		panic(err)
	}
	ewrbuf.Close()
	fmt.Printf("%s\n", buf.Bytes())

}
Exemplo n.º 8
0
// NewEntity returns a new OpenPGP entity.
func NewEntity() (*openpgp.Entity, error) {
	name := "" // intentionally empty
	comment := "camlistore"
	email := "" // intentionally empty
	return openpgp.NewEntity(name, comment, email, nil)
}