|Problems? Is your data what you think it is?|
Convert pem to ssh-rsaby jpsaraiva (Acolyte)
|on Aug 23, 2019 at 12:06 UTC||Need Help??|
jpsaraiva has asked for the wisdom of the Perl Monks concerning the following question:
On Windows, I'm using Crypt::PK::RSA to generate key pairs like this:
Private key format is fine. Public key is generated like this:
Since I need to add this key to authorized_keys files it needs to be in a ssh-rsa format.
Can easly be done using ssh-keygen to convert:
I found this thread explaining the process and having several solutions none perl based.
And all end up being dependent on ssh-keygen or open-ssl both not natively available on Windows
Does anyone know how to do this only in perl or if it is even possible?