Exported private key from 4096 bit SSH key is wrong
Brought to you by:
chris2511
I did the following
ssh-keygen -b 4096
(no password)The resulting Private key was NOT the same key I imported.
Further, when I tried to then import it into puttykeygen, it told me that file was not even a valid format.
I have some more information.
Export -> File -> PEM Private = Produces the same text as the original
Export -> Clipboard -> PEM Private = Produces something different
(This is on Windows if this makes a difference)
Export -> File -> PEM Private exports a PKCS#1 key
Export -> Clipboard -> PEM Private exports a PKCS#8 structure
puttykeygen apparently can't handle the PKCS#8 structure.
Fixed in XCA 1.4.1 with:
commit eaabb2a28dc809149588e2eb34af4995d8355722
Author: Christian Hohnstaedt christian@hohnstaedt.de
Date: Sat Jan 6 21:18:31 2018 +0100