Thank you for the reply.

The converted key works fine.

We can use this conversion method for now until JSch has support for PKCS#8.




On 11/12/2013 02:50 AM, Atsuhiko Yamanaka wrote:
> Hi,
>
>    +-From: Gerry Reno <gr...@verizon.net> ---
>    |_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
>


------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
JSch-users mailing list
JSch-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to