How to sign public PGP key with Bouncy Castle in Java
问题 I'm writing PGP server to generate keys for users. I want to sign any generated PGP public key with my private key in Java with Bouncy Castle, to make it trusted for my users. I have no problems with generating key pair - it works perfect. I tried to sign by gpg --sign-key command line and it works good. But I can't get the same in Java. I tried many solutions like this: java sign public pgp key with bouncycastle and DirectKeySignature class from BC examples package, but nothing works for my.