I think I messed a bit with the formats. What I *really* had in mind was an ability to convert PublicKey into the .ssh/myid.pub format ... which, for example, is described here [1].
Apologies for the confusion ... looks like the caffeine has not reached my brain :) Back to the root - do we have anything in sshd that allows to serialize any type of PublicKey (regardless the algorithm and encoding) into ssh *.pub content? [1] https://coolaj86.com/articles/the-ssh-public-key-format/ On 27.01.2021 08:56, Artur Socha wrote: > Hi, > I am struggling finding an API that would allow me to convert existing > java.security.PublicKey instance into regular PEM string. > > I am already aware of org.bouncycastle.openssl.jcajce.JcaPEMWriter but > I was hoping there could be something natively built within Apache Mina > SSHD itself. We have a preference to limit external dependencies if > possible. > > I would be very grateful for any suggestions where/what to look for. > > thanks! > Artur >
OpenPGP_signature
Description: OpenPGP digital signature