i want to pack my OpenSSH certificate signed by a CA to a pfx file. From what i saw i need the format of my private key and certificate to be in PEM. I use ssh-keygen to generate the rsa private and public key. The private key is already in PEM format When i create OpenSSH certificate its in OpenSSH format and not in PEM encoding.
I want to use the pkcs12 -export command to generate the pkcs12 package of my private key and my certificate but than it says couldnt load certificates.
I know i need the certificate to be in pem, and I need to give the CA certificate aswell in the -in file But the certificate isnt in PEM and it doesnt recognize it even if i put it forcibly in PEM.
Has anyone ever packed a OpenSSH certificate (not x.509) signed by CA (even though Selfsigned didnt work for me either) and private key to pfx file?
If yes can you give the exact commands from the key generation including the certificate generation and the creation of the pfx file?
Thanks in advance, i have been looking for days without proper answer.