I was trying to get a public key in Openssh format from an existing .p12 certificate. I can see little to no documentation on this.
I saw this option -i option in ssh-keygen man page. That sounds similar to what I want to achieve. i.e., change one format of key to OpenSSH format.
I tried multiple examples, but I always get format not supported error. What are possible interchangeable formats?
It would be great to get an example how -i format works.
Thanks in advance.
ssh-keygenand exactly what error you're getting. Don't paraphrase the error. It would also be helpful to show what format input file you have.ssh-keygen -y(not-i) to do what you want, but that's (now) offtopic in addition to being prohibited by your question. @Kenster: .p12 strongly implies PKCS12 format.