Add an e2e test for cert generation.
Merge pull request #2724 from brendandburns/fix

Add an e2e test for cert generation.