Re: [JSch-users] addIdentity: on android getting invalid privatekey: [B@428ff138 with known good RS
Status: Alpha
Brought to you by:
ymnk
From: <ym...@jc...> - 2013-11-12 07:50:51
|
Hi, +-From: Gerry Reno <gr...@ve...> --- |_Date: Mon, 11 Nov 2013 14:52:51 -0500 __ | | Ok, here is one of my key sets that fail: |-----BEGIN PRIVATE KEY----- |MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBALjYkwBTqhl5P8E |NLB5jOUeIybMI2DL7bmQ1wTpWC8KCBaeCQmgqB/dUS23qYPJuaiuRnqofC7vsqr ... JSch has expected PKCS#5 private keys, which usually start with -----BEGIN RSA PRIVATE KEY----- or -----BEGIN DSA PRIVATE KEY----- , but it seems your key is in PKCS#8 format. Some hacks will be required to support such a format. If you can't wait for that hack, you may want to convert it into PKCS#5 format, $ openssl ras -in your_key -out your_new_key Sincerely, -- Atsuhiko Yamanaka JCraft,Inc. 1-14-20 HONCHO AOBA-KU, SENDAI, MIYAGI 980-0014 Japan. Tel +81-22-723-2150 Skype callto://jcraft/ Twitter: http://twitter.com/ymnk Facebook: http://facebook.com/aymnk |