aboutsummaryrefslogtreecommitdiff
path: root/crypto.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 /crypto.go
parent88c842be07c221f962edcedfdf5cd0c53b2700e7 (diff)
Use PublicKey
Diffstat (limited to 'crypto.go')
-rw-r--r--crypto.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto.go b/crypto.go
index 9fda3e7..619cccc 100644
--- a/crypto.go
+++ b/crypto.go
@@ -47,7 +47,7 @@ func NewCSR(altnames []string, key *rsa.PrivateKey) ([]byte, error) {
return x509.CreateCertificateRequest(rand.Reader, &tmpl, key)
}
-func Thumb(token string, key *rsa.PrivateKey) (string, error) {
+func Thumb(token string, key crypto.PublicKey) (string, error) {
k := &jose.JsonWebKey{Key: key, Algorithm: "RSA"}
t, err := k.Thumbprint(crypto.SHA256)
if err != nil {