Cleaned up certFilePath handling and error messaging

Removed unnecessary nesting, removed unnecessary variables, increased
error messaging, moved error handling closer to error source.
Removed typo variable -- success has two c's in it.