title: How to sign public PGP key with Bouncy Castle in C#
body: <p>I want to create web of trust support in my application, allowing my users to use their private keys, to sign other user's public keys - Using C# and Bouncy Castle.</p>
  
  <p>I've got most things figured out, such as creating PGP keys, submitting them to key servers using HTTP REST, encrypting MIME messages and cryptographically signing them (using MimeKit) - But the one remaining hurdle, is to figure out some piece of code that can use my private key, to sign for another person's public key, using Bouncy Castle.</p>
  
  <p>Since the documentation for BC is horrendous, figuring out these parts, have previously proven close to impossible ...</p>
  
  <p>For the record, I'm using GnuPG as my storage for keys.</p>
  
  <p>If anybody wants to look at my code so far for what I have done, feel free to check it out <a href="https://github.com/polterguy/phosphorusfive/tree/master/plugins/extras/p5.mime" rel="nofollow noreferrer">here</a>.</p>
  
  <p>I am probably not supposed to ask this here, but I'd also love it if some BC gurus out there could have a general look at my code so far, and check if I've made a fool of myself with the stuff I've done so far ...</p>