mirror of
https://github.com/harness/drone.git
synced 2025-05-31 11:43:15 +00:00
fix ssh key fingerprint (#2076)
This commit is contained in:
parent
a1ce21aa7c
commit
ef18a7aff2
@ -92,7 +92,7 @@ func (key KeyInfo) MatchesKey(otherKey gossh.PublicKey) bool {
|
||||
func (key KeyInfo) Fingerprint() string {
|
||||
sum := sha256.New()
|
||||
sum.Write(key.Key.Marshal())
|
||||
return base64.StdEncoding.EncodeToString(sum.Sum(nil))
|
||||
return "SHA256:" + base64.RawStdEncoding.EncodeToString(sum.Sum(nil))
|
||||
}
|
||||
|
||||
func (key KeyInfo) Type() string {
|
||||
|
Loading…
x
Reference in New Issue
Block a user