aboutsummaryrefslogtreecommitdiff
path: root/crypto.go
diff options
context:
space:
mode:
Diffstat (limited to 'crypto.go')
-rw-r--r--crypto.go12
1 files changed, 0 insertions, 12 deletions
diff --git a/crypto.go b/crypto.go
index e005562..f70cc2f 100644
--- a/crypto.go
+++ b/crypto.go
@@ -1,7 +1,6 @@
package acme
import (
- "crypto"
"crypto/rand"
"crypto/rsa"
"crypto/x509"
@@ -10,8 +9,6 @@ import (
"encoding/pem"
"io"
"io/ioutil"
-
- "github.com/square/go-jose"
)
func LoadKey(r io.Reader) (*rsa.PrivateKey, error) {
@@ -51,15 +48,6 @@ func NewCSR(altnames []string, key *rsa.PrivateKey) (string, error) {
return base64.RawURLEncoding.EncodeToString(der), nil
}
-func Thumb(token string, key crypto.PublicKey) (string, error) {
- k := &jose.JsonWebKey{Key: key, Algorithm: "RSA"}
- thumb, err := k.Thumbprint(crypto.SHA256)
- if err != nil {
- return "", err
- }
- return token + "." + base64.RawURLEncoding.EncodeToString(thumb), nil
-}
-
func SaveCert(w io.Writer, der []byte) error {
block := &pem.Block{
Type: "CERTIFICATE",