Initial unit tests for new SSL functions
Merge pull request #2271 from ghost1227/issue/1836

Unit tests!