Adding more debug info to ssl certificate error