When connecting to a server that has no certificate, ClientSessionChannel.OnOpenAsync throws an exception because it tries to read a certificate from an byte array that is null.
This PR ensures that we only read the certificate if the byte array is not null.
When connecting to a server that has no certificate, ClientSessionChannel.OnOpenAsync throws an exception because it tries to read a certificate from an byte array that is null.
This PR ensures that we only read the certificate if the byte array is not null.
Fixes issue #246