Fix race condition
Merge pull request #53 from ares/fix/certs

Fix race condition