Choose the code segment which you should use.

You work as the application developer at Domain.com.
You are developing a new application named Certkiller App06.
Certkiller App06 will be used to transmit confidential financial information over the network.
To secure the confidential data, you create an X509 Certificate object named certificate and create a TcpClient object named client.
You must now create the code segment that creates an SslStream for communication by applying the Transport Layer Security 1.0 protocol.
Choose the code segment which you should use.

You work as the application developer at Domain.com.
You are developing a new application named Certkiller App06.
Certkiller App06 will be used to transmit confidential financial information over the network.
To secure the confidential data, you create an X509 Certificate object named certificate and create a TcpClient object named client.
You must now create the code segment that creates an SslStream for communication by applying the Transport Layer Security 1.0 protocol.
Choose the code segment which you should use.

A.
SslStream ssl = new SslStream(client.GetStream());
ssl.AuthenticateAsServer(
certificate, false, SslProtocols.None, true);

B.
SslStream ssl = new SslStream(client.GetStream());
ssl.AuthenticateAsServer(
certificate, false, SslProtocols.Ssl3, true);

C.
SslStream ssl = new SslStream(client.GetStream());
ssl.AuthenticateAsServer(
certificate, false, SslProtocols.Ssl2, true);

D.
SslStream ssl = new SslStream(client.GetStream());
ssl.AuthenticateAsServer(
certificate, false, SslProtocols.Tls, true);



Leave a Reply 1

Your email address will not be published. Required fields are marked *


mr_tienvu

mr_tienvu

Correct answer is D