Skip to content
Snippets Groups Projects
Commit 54a8bead authored by David Cowden's avatar David Cowden
Browse files

keys: Fix certificate parsing

ssh.ParsePublicKey parses a certificate in ssh wire formate. The
ssh.ParseAuthorizedKey method can parse the human-serialized version of
an ssh certificate as is used when writing data to the filesystem.
parent 39b86be0
No related branches found
No related tags found
No related merge requests found
...@@ -35,7 +35,7 @@ func LoadCertFromFiles(keypath, certpath string) (ssh.Signer, error) { ...@@ -35,7 +35,7 @@ func LoadCertFromFiles(keypath, certpath string) (ssh.Signer, error) {
if err != nil { if err != nil {
return nil, err return nil, err
} }
pub, err := ssh.ParsePublicKey(cb) pub, _, _, _, err := ssh.ParseAuthorizedKey(cb)
if err != nil { if err != nil {
return nil, err return nil, err
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment