Fix SSLProtocolException handshake

See [AGPUSH-512](https://issues.jboss.org/browse/AGPUSH-512)