title: How to verify the digital signature of .EXE or DLL in Java
body: <p>I would like to verify the digital signature of calling application ( .Exe file ) using Java API, i could see similar question posted for this but its unanswered </p>
  
  <p><a href="https://stackoverflow.com/questions/24915753/java-program-to-verify-digital-signature-signed-by-signtool">Java program to verify digital signature signed by signtool</a></p>
  
  <p>In short I am looking for a Java option of below commands to verify signature of abc.exe</p>
  
  <p>Powershell: </p>
  
  <pre><code>powershell get-process -Id pid | select -Expand modules|select -expand filename
  </code></pre>
  
  <p>pid is the process id of the abc.exe file here. </p>
  
  <p>signtool:</p>
  
  <pre><code>signtool.exe verify /v abc.exe
  </code></pre>