[PATCH] ssh-keygen: support public key import/export using SubjectPublicKeyInfo

Alon Bar-Lev alon.barlev at gmail.com
Mon Jul 30 16:13:23 EST 2012


On Mon, Jul 30, 2012 at 3:24 AM, Damien Miller <djm at mindrot.org> wrote:
> On Sat, 28 Jul 2012, Alon Bar-Lev wrote:
>
>> ssh-keygen already supports importing and exporting ssh keys using
>> various formats.
>>
>> The "-m PEM" which should have been the easiest to be used with
>> various of external application expects PKCS#1 encoded key, while
>> many applications use SubjectPublicKeyInfo encoded key.
>>
>> This change adds SubjectPublicKeyInfo support, to ease integration
>> with applications.
>
> I've not heard the term "SubjectPublicKeyInfo" used to refer to a
> public key format before, but what the format you seem to be importing
> and exporting seems to be what we implement as PKCS8, though I think
> this might be a misnomer.
>
> If you s/SUBJECTINFO/PKCS8/ in your examples then they should work.

Thank you, my bad.

Alon.


More information about the openssh-unix-dev mailing list