📝 SSL architecture in computer networks (18 MCQs)
📖 From Data Communication and Networks • 32. Internet Security • 18 questions available
What is SSL architecture in computer networks?
The SSL/TLS architecture consists of two primary layers: the Record Protocol, which handles fragmentation, compression, encryption, and integrity checking, and multiple handshake protocols that manage session establishment and key exchange.
📝 All SSL architecture in computer networks MCQs
Q1. If the server's certificate is invalid, which step in the SSL handshake will fail?
📖 Explanation: The CertificateVerify message is sent by the client to prove possession of the private key that matches its certificate. An invalid server certificate prevents the client from generating a valid CertificateVerify, causing the handshake to abort at that point, while earlier messages like ClientHello and ServerHello are still exchanged.
Q2. During an SSL session, if the client receives a ChangeCipherSpec before ServerHello, what can be inferred?
📖 Explanation: Receiving ChangeCipherSpec before ServerHello violates the prescribed message order defined in the TLS specification. This out‑of‑sequence message suggests either a misconfigured implementation or an active attempt to confuse the client, both of which are abnormal and warrant termination of the session.
Q3. Suppose a man‑in‑the‑middle strips SSL, causing the client to fall back to HTTP. Which sequence best describes the resulting security breach?
📖 Explanation: When SSL is stripped, the client believes it is using HTTPS, but the request is sent over plain HTTP. The attacker intercepts the unencrypted request and response, gaining full visibility of the payload. This downgrade attack undermines confidentiality and integrity that SSL is designed to protect.
Q4. If a server supports both TLS 1.2 and TLS 1.3, and the client offers only TLS 1.2, what handshake outcome is expected?
📖 Explanation: The TLS version negotiation selects the highest version supported by both parties. Since the client only offers TLS 1.2, the server will downgrade to TLS 1.2, completing the handshake with that version. No failure occurs because the server still supports the client’s offered version.
Q5. When forward secrecy is enabled, which key exchange algorithm ensures that compromise of the server's private key does not expose past session keys?
📖 Explanation: Elliptic Curve Diffie‑Hellman Ephemeral (ECDHE) generates a temporary key pair for each session. Even if the server's long‑term private key is later compromised, the ephemeral private key used for that session is discarded, so past session keys remain undisclosed, providing forward secrecy.
Q6. If the client aborts after receiving ServerHelloDone, which SSL handshake message is most likely missing?
📖 Explanation: The ServerHelloDone signals the end of the server's initial messages. The client typically follows with its own Certificate, ClientKeyExchange, then ChangeCipherSpec and Finished. An abrupt abort after ServerHelloDone usually indicates the client never sent the ChangeCipherSpec, which is required before the Finished message.
Q7. Compare the number of round‑trips in the classic SSL handshake with the TLS 1.3 handshake. Which statement is accurate?
📖 Explanation: The classic SSL/TLS handshake (pre‑TLS 1.3) involves a ClientHello, ServerHello, certificate exchange, and Finished messages, resulting in two full round‑trips. TLS 1.3 streamlines the process by combining many steps into the initial messages, reducing the exchange to a single round‑trip.
Q8. Evaluate the impact of disabling RSA key exchange on client compatibility. Which outcome is most likely?
📖 Explanation: Disabling RSA key exchange forces the use of Diffie‑Hellman‑based suites (DHE/ECDHE). Modern browsers support these suites, so they continue to connect. However, legacy clients that only implement RSA key exchange will be unable to negotiate a cipher suite, leading to connectivity issues for those outdated devices.
Q9. Differentiate MAC‑then‑encrypt from encrypt‑then‑MAC in SSL. Which statement best captures their security difference?
📖 Explanation: Encrypt‑then‑MAC computes the MAC over the ciphertext, ensuring that any alteration of the ciphertext is detected before decryption, which prevents certain attacks. In MAC‑then‑encrypt, the MAC is computed on the plaintext, and an attacker could manipulate the ciphertext without immediate detection, making it less secure.
Q10. Compare session resumption using session IDs versus session tickets. Which advantage belongs to session tickets?
📖 Explanation: Session tickets encapsulate the session state in an encrypted blob that the client stores and returns, allowing the server to resume the session without maintaining per‑client state. This reduces server memory consumption and simplifies scaling, whereas session IDs rely on server‑side storage of session data.
Q11. Analyze the effect of certificate pinning on mitigating man‑in‑the‑middle attacks. Which outcome is most accurate?
📖 Explanation: Certificate pinning restricts the set of trusted certificates to a known good value. If an attacker presents a fraudulent certificate, the client will reject it, thereby mitigating many MITM scenarios. However, pinning does not affect handshake speed; it adds a verification step.
Q12. Contrast the use of static Diffie‑Hellman versus ephemeral Diffie‑Hellman in SSL. Which statement correctly describes the difference?
📖 Explanation: Ephemeral Diffie‑Hellman (DHE/ECDHE) creates a fresh key pair for each session, ensuring that even if the server’s long‑term private key is compromised, past session keys remain secret. Static DH reuses the same parameters, lacking forward secrecy.
Q13. How does the Finished message provide integrity assurance in an SSL/TLS session?
📖 Explanation: The Finished message includes a MAC computed as . This MAC, encrypted with the newly derived keys, proves that both parties have the same view of the handshake, guaranteeing integrity and authenticity of the entire exchange.
Q14. Design a secure configuration that mitigates the POODLE attack. Which combination is most effective?
📖 Explanation: The POODLE attack exploits SSL 3.0's padding vulnerability. The safest mitigation is to disable SSL 3.0 entirely, enforce TLS 1.3 (which removes CBC padding issues), and permit only modern, secure cipher suites. This configuration eliminates the vulnerable protocol and cipher interactions.
Q15. Explain the relationship between cipher suite selection and performance in SSL. Which statement is true?
📖 Explanation: Modern CPUs often include acceleration for AES‑GCM and ChaCha20‑Poly1305. Selecting a cipher suite that leverages these hardware features can deliver high security while maintaining low latency and high throughput, whereas purely software‑based ciphers may incur higher CPU usage.
Q16. What role does the Alert protocol play in SSL/TLS error handling?
📖 Explanation: The Alert protocol is a dedicated message type used to convey warning or fatal error conditions (e.g., unexpected_message, handshake_failure). Alerts are sent in plaintext or encrypted depending on the stage of the handshake, allowing each endpoint to react appropriately—either by attempting recovery or terminating the connection.
Q17. What does SSL stand for?
📖 Explanation: SSL is an acronym for Secure Sockets Layer, the original protocol suite that provided encrypted communications over the Internet before being succeeded by TLS.
Q18. Which port is the default for HTTPS traffic?
📖 Explanation: HTTPS, the secure version of HTTP that typically runs over SSL/TLS, uses TCP port 443 by convention. Port 80 is used for plain HTTP, 21 for FTP, and 25 for SMTP.