aboutsummaryrefslogtreecommitdiff
path: root/client.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-12-23 01:40:50 +0100
committerDimitri Sokolyuk <demon@dim13.org>2015-12-23 01:40:50 +0100
commita6164ce0b210aaafff25dafbaee191bdf95628e2 (patch)
tree86a163fce423ebbe620820027ecf5c07c595e81b /client.go
parent88c842be07c221f962edcedfdf5cd0c53b2700e7 (diff)
Use PublicKey
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)
}