Re: OpenSSH private key format errors with LibreSSL 2.7

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

 



On Friday 06 April 2018 21:31:01 Bernard Spil wrote:
> Hi,
> 
> When using OpenSSH with LibreSSL 2.7.x it cannot read existing RSA and
> ECDSA private keys.
> 
>      Error loading key "./id_rsa": invalid format
> 
> Rebuilding OpenSSH with LibreSSL 2.6.x fixes the issue. I had fixed this
> issue early on with LibreSSL 2.7 by converting the key to "new file
> format" (to verify the ecdsa key wasn't corrupted I loaded it in
> 
> Fail:
> -----BEGIN EC PRIVATE KEY-----
> Proc-Type: 4,ENCRYPTED
> DEK-Info: AES-128-CBC,<snip>
> 
> -----BEGIN RSA PRIVATE KEY-----
> Proc-Type: 4,ENCRYPTED
> DEK-Info: AES-128-CBC,<snip>
> 
> Success (both keys after converting):
> -----BEGIN OPENSSH PRIVATE KEY-----
> 
> I've been digging through ssh-keygen to find a way to convert them but
> have yet to find the right knobs. -e only exports public keys.
> 
> Currently running `make test` on OpenSSH 7.7 with LibreSSL 2.7.2.
> 
> Any hints?

What does the following say, when compiled with 2.7.2:

$ openssl version
$ openssl rsa -in ~/.ssh/id_rsa -noout ; echo $?
$ ssh -V
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev



[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux