mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-19 01:28:51 +02:00
config: remove support for ed25519 signing keys (#2430)
This commit is contained in:
parent
c0f9de2a46
commit
cc9962cca6
6 changed files with 11 additions and 20 deletions
|
@ -3,7 +3,6 @@ package cryptutil
|
|||
import (
|
||||
"crypto"
|
||||
"crypto/ecdsa"
|
||||
"crypto/ed25519"
|
||||
"crypto/rsa"
|
||||
"crypto/x509"
|
||||
"encoding/hex"
|
||||
|
@ -76,8 +75,6 @@ func loadPublicKey(b []byte) (interface{}, error) {
|
|||
return k.Public(), nil
|
||||
case *ecdsa.PrivateKey:
|
||||
return k.Public(), nil
|
||||
case ed25519.PrivateKey: // note, not a pointer
|
||||
return k.Public(), nil
|
||||
default:
|
||||
return nil, fmt.Errorf("private key is unsupported type")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue