fix the double free with cert_store

this fixes #27.