HomePhabricator

pki: parse keys from certificates into ssh_key

Authored by Ben Toews <mastahyeti@gmail.com> on Feb 13 2019, 4:49 PM.

Description

pki: parse keys from certificates into ssh_key

Previously, we were just storing the raw certificate in ssh_key->cert. With
this change, we parse out the nonce string at the beginning of the certificate.
This leaves us with the certificate's public key at the start of the buffer.
The existing public key parsing code can then parse this out into the key fieds
of the ssh_key.

Signed-off-by: Ben Toews <mastahyeti@gmail.com>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>

Details

Committed
asnApr 17 2019, 10:21 AM
Parents
rLIBSSH04b284dae028: tests/unittests: test ECDSA/ED25519 support
Branches
Unknown
Tags
Unknown

Event Timeline