Skip to content

Commit

Permalink
fix x509: unsupported public key type: *crypto.PublicKey (#864)
Browse files Browse the repository at this point in the history
https://pkg.go.dev/crypto#PublicKey
`type PublicKey interface{}` 😢

Signed-off-by: Jake Sanders <[email protected]>
  • Loading branch information
Jake Sanders authored Oct 8, 2021
1 parent c79fa81 commit 142e7ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/cosign/pivkey/pivkey.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ func (k *Key) Verifier() (signature.Verifier, error) {
if err != nil {
return nil, err
}
k.Pub = (*crypto.PublicKey)(&cert.PublicKey)
k.Pub = cert.PublicKey

return k, nil
}
Expand All @@ -241,7 +241,7 @@ func (k *Key) SignerVerifier() (signature.SignerVerifier, error) {
if err != nil {
return nil, err
}
k.Pub = (*crypto.PublicKey)(&cert.PublicKey)
k.Pub = cert.PublicKey

var auth piv.KeyAuth
if k.pin == "" {
Expand Down

0 comments on commit 142e7ed

Please sign in to comment.