- Fix typo in ssl options
- Fix debug flag and print debug output if the flag is on.