Replace c_rehash with a for loop calling openssl

Freebsd has no c_rehash installed by default. This for loop generates a hash link for every pem file in the certs directory.
Merge pull request #250 from tisoft/patch-1

Replace c_rehash with a for loop calling openssl