aboutsummaryrefslogtreecommitdiff
path: root/crypto.go
diff options
context:
space:
mode:
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 {