-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use principal in CA abstraction (#570)
Modifies the CA abstraction to consume identity.Principal instead of challenges.ChallengeResult. Also implements the indentity.Principal methods for ChallengeResult. Signed-off-by: Nathan Smith <[email protected]>
- Loading branch information
Showing
11 changed files
with
290 additions
and
310 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
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
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
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
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
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
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 |
---|---|---|
|
@@ -165,11 +165,10 @@ func TestCreatePrecertificateAndIssueFinalCertificate(t *testing.T) { | |
|
||
ica := IntermediateCA{Certs: certChain, Signer: subKey} | ||
precsc, err := ica.CreatePrecertificate(context.TODO(), &challenges.ChallengeResult{ | ||
Issuer: "iss", | ||
TypeVal: challenges.EmailValue, | ||
Value: "[email protected]", | ||
PublicKey: priv.Public(), | ||
}) | ||
Issuer: "iss", | ||
TypeVal: challenges.EmailValue, | ||
Value: "[email protected]", | ||
}, priv.Public()) | ||
|
||
if err != nil { | ||
t.Fatalf("error generating precertificate: %v", err) | ||
|
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
Oops, something went wrong.