Throw on unknown SSL profile name

fixes #817
Add basic SSL test against fake server