Adjust ssl chain_file checks to fix internal and admin api