<div class="gmail_quote">---------- Forwarded message ----------<br>From: "Deepak" <<a href="mailto:dpb795795@gmail.com">dpb795795@gmail.com</a>><br>Date: Jan 31, 2015 8:05 AM<br>Subject: OpenSSL 'verify' command and c_ rehash script on Cygwin<br>To:  <<a href="mailto:openssl-users@openssl.org">openssl-users@openssl.org</a>><br>Cc: <br><br type="attribution">Hi,<br>
<br>
Can following behaviour be confirmed as expected?<br>
<br>
OpenSSL verify test (test_verify) fails<br>
<br>
Env-<br>
c_rehash run using Cygwin. Run c_rehash on /path/to/certs/demo<br>
<br>
Cmd -<br>
openssl verify -CApath ../certs/demo ../certs/demo/*.pem<br>
<br>
Cause -<br>
Symbolic links (from hash.0 to file.pem) created by c_rehash when run with Cygwin could not be read by OpenSSL.exe verify command.<br>
<br>
Result -<br>
Error 20: could read issuer certificate<br>
OpenSSL.exe fails to establish certificate chain.<br>
<br>
Workaround -<br>
Modify c_rehash to useĀ  MS API 'mklink'<br>
<br>
Thank You.</div>