View definition

(*SQLStorageAuthority).NewRegistration

Defined in github.com/letsencrypt/boulder/sa/sa.go

Description

NewRegistration stores a new Registration

Examples

	contact := "mailto:[email protected]"
	contacts := &[]string{contact}
	reg, err := sa.NewRegistration(ctx, core.Registration{
		Key:       jwk,
		Contact:   contacts,

	contact := "mailto:[email protected]"

	_, err := sa.NewRegistration(ctx, core.Registration{
		Key:       jose.JsonWebKey{Key: &rsa.PublicKey{N: big.NewInt(1), E: 1}},
		Contact:   &[]string{contact},

	})
	test.AssertNotError(t, err, "Couldn't insert registration")
	_, err = sa.NewRegistration(ctx, core.Registration{
		Key:       jose.JsonWebKey{Key: &rsa.PublicKey{N: big.NewInt(2), E: 1}},
		Contact:   &[]string{contact},

NewRegistration is referenced in 1 repository

github.com/letsencrypt/boulder