title: Digital signature: sample code for verification and for extracting certification information
body: <p>I use a third party tool to verify signature and to get certificate detail(like serial number, CA etc..) from signature. The problem with this utility is it is licensed and works on certain machines only.</p>
  
  <p>Can i validate the signature against the data using simple java or .net code?(instead of using paid application). I dont have private key to extract certificate information from signed data.</p>
  
  <p>Or if someone can suggest sample code in java or .net to extract certificate detail if i have pfx file. Of from signed data.</p>
  
  <p><em>Data is signed with asymmetric encryption.</em></p>