You are developing a server application that will transmit sensitive information on a network. You
create an X509Certificate object named certificate and a TcpClient object named client.
You need to create an SslStream to communicate by using the Transport Layer Security 1.0
protocol. Which code segment should you 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);
Answer: D
create an X509Certificate object named certificate and a TcpClient object named client.
You need to create an SslStream to communicate by using the Transport Layer Security 1.0
protocol. Which code segment should you 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);
Answer: D
No comments:
Post a Comment