fixed bug where a client SslContext was being generated instead of a server one.