-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #59 from akakou/hotfix/email-miss
fix: bug email cannot readed
- Loading branch information
Showing
2 changed files
with
2 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,9 +32,7 @@ func (u *MyUser) GetPrivateKey() crypto.PrivateKey { | |
return u.key | ||
} | ||
|
||
var email = "[email protected]" | ||
|
||
func IssueCertificate(key crypto.PrivateKey, domain string) *certificate.Resource { | ||
func IssueCertificate(key crypto.PrivateKey, domain, email string) *certificate.Resource { | ||
// Create a user. New accounts need an email and private key to start. | ||
privateKey, err := ecdsa.GenerateKey(elliptic.P256(), rand.Reader) | ||
if err != nil { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters