Certificate exception differentiation for easier error handling.
Use appropriate type for index.
Build intermediate library for test runner and utils to speed up build.