title: how can i edit openssl sign function using php?
body: <p>i want to add the signature, returned by the <code>openssl_sign</code> function,
  to a file  in the same process of signature.</p>
  
  <hr>
  
  <p>the problem is : when i add the signature to the file after signing it, i get an error while
  verifying the signature with the <code>openssl_verify</code> function.  </p>
  
  <pre><code>openssl_sign($current, $signature, $pkeyid);
  </code></pre>
  
  <p>i want this $siganute to be added in the $current file, and this file should be signed with the same signature in the same process, i know it's a little bit confusing.</p>