title: What is the difference between TlsSignerCredentials and TlsAgreementCredentials in Bouncy Castle
body: <p>I'm using Bouncy Castle to TLS connection with sending client certificate to server. But I don't know which interface I should use as TlsCredentials, is this should be:
  <strong>TlsSignerCredentials</strong> or <strong>TlsAgreementCredentials</strong> and how to implement this. </p>
  
  <p>For example what is the correct implementation</p>
  
  <pre><code>byte[] GenerateCertificateSignature(byte[] md5andsha1);
  </code></pre>
  
  <p>in <strong>TlsSignerCredentials</strong> and when I should use this instead of <strong>TlsAgreementCredentials</strong></p>
  
  <p>Could you give me a sample implementation or give any clue, please ?</p>
  
  <p>Thanks in advance!</p>
  
  <p>Artur</p>