key Converter

Саша Дьяков adyakov at mail.ru
Tue Nov 22 20:01:59 WST 2005


I have generate rsa and dss keys in Linux in that way:
/usr/bin/ssh-keygen -q -t dsa -f dsa.key -C '' -N ''
/usr/bin/ssh-keygen -q -t rsa -f rsa.key -C '' -N ''
and then send them over e-mail. Then I have tried to convert these keys to Dropbear format but system said me:
Error: File does not begin with OpenSSH key header
Error reading key from '/ssh/rsa.key'
Error: File does not begin with OpenSSH key header
Error reading key from '/ssh/dsa.key'

The problem is in '\n' symbol in keyimport.c file:
line 385:		0 != strcmp(buffer+strlen(buffer)-17, "PRIVATE KEY-----\n")) {

so in binary format symbol '\n' will be as "0D 0A", but in original format it is simple "0A". I have removed '\n' simbol from comparison.

Regards
Dyakov Alex



More information about the Dropbear mailing list