aboutsummaryrefslogtreecommitdiff
path: root/client.go
diff options
context:
space:
mode:
Diffstat (limited to 'client.go')
-rw-r--r--client.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/client.go b/client.go
index 170f007..4816c0b 100644
--- a/client.go
+++ b/client.go
@@ -217,12 +217,11 @@ func (c *Client) Authorize(a *Account, domain []string) error {
case http.StatusCreated:
for _, ch := range r.Challenges {
if canSolve[ch.Type] {
- t, _ := Thumb(ch.Token, a.PrivKey)
+ ka, _ := Thumb(ch.Token, a.PrivKey.Public())
ans := &Challenge{
Resource: ResChallenge,
Type: ch.Type,
- Token: ch.Token,
- KeyAuthorization: t,
+ KeyAuthorization: ka,
}
_, err = c.post(ch.URI, a, ans)
}