I will preface this that I am extremely inexperienced with certs/keys and I am using a Mac.
My problem is with RSA and OPENSSH certs/keys. I currently have a valid RSA cert/key, but I need to convert them to OpenSSH. From my understanding, I want to do the opposite of this thread: Openssh Private Key to RSA Private Key
I have a file that starts with:
-----BEGIN RSA PRIVATE KEY-----
But I need to convert it to this:
-----BEGIN OPENSSH PRIVATE KEY-----
I have tried ssh-keygen -p -N "" -m pem -f /path/to/key
and ssh-keygen -f /path/to/key -m pem
but it does not output with the OPENSSH
header I expected.
- Is this possible?
- If it is possible, what can I use to perform this conversion and what would a potential command be?
- Do I need to do anything to convert the cert if I converted the key?
- If I do need to convert the cert, what is the command for that?
- If there is any further explanation on what converting from RSA to OPENSSH is, I would really appreciate it.