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.