Follow up on #29871. Was checking the wrong parameter, causing the code to ignore provided stream-specific SSL certificate.
connect_to_stream now accepts optional parameter to specify which certificates to trust. Implement accept_stream (SSL server) with key/cert parameters to specify the RSA key and X509 certificate resources.