Reject unauthorized certs

Closes #311 

This is the core part of this change to allow routes to have certs. I still need to make a change to the console to allow this from the front-end.

@devcritter Please review.