[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Parsing private key PK - Invalid key tag or value
[Thread Prev] | [Thread Next]
- Subject: Re: Parsing private key PK - Invalid key tag or value
- From: Jakub Jelen <jjelen@xxxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Thu, 30 Jun 2022 12:42:38 +0200
- To: libssh@xxxxxxxxxx
On 6/30/22 07:43, Heiko Thiery wrote:
Hi, I use netopeer2 with libnetconf2 in combination with libssh and mbedtls. When trying to open a SSH connection I get the following message: [INF]: LN: Accepted a connection on 0.0.0.0:830 from 127.0.0.1:38712. [INF]: SR: Session 128 (user "root", CID 38) created. [2022/06/28 07:31:06.841984, 1] pki_private_key_from_base64: Parsing private key PK - Invalid key tag or value [ERR]: LN: Failed to set hostkey "genkey" (/tmp/gyFsev). Switching to use openSSL does not show this error. Anyone have an explanation for this?
Do you have example key with this issue?I think the mbedtls and gcrypt did not have PEM parser or there were some limitations.
It might also be that the openssl you are using is generating keys with some specific functionality that is not supported by mbedtls parser.
Regards, -- Jakub Jelen Crypto Team, Security Engineering Red Hat, Inc.
Re: Parsing private key PK - Invalid key tag or value | Heiko Thiery <heiko.thiery@xxxxxxxxx> |
Parsing private key PK - Invalid key tag or value | Heiko Thiery <heiko.thiery@xxxxxxxxx> |