What If Netscape Did SSL the HTTP Way?
In a alternate reality, if Netscape had chosen to implement SSL in a different manner, the way we use HTTPS today could have been significantly different. In this hypothetical scenario, Netscape's SSL was released in 1995 along with a new URL scheme (https://) and a dedicated port number (443). However, this was not met with widespread approval at the time, as the web already had an established protocol and port.
In this parallel universe, HTTP had already incorporated the necessary headers for smooth protocol handovers a few years earlier than it did in our reality. The Upgrade header, which facilitates protocol transitions, was introduced in HTTP/1.1 in 1997, and the Host header, enabling multiple websites to reside on a single IP address, was part of HTTP/1.1 as well. Netscape, despite lacking these features, could have leveraged the existing HTTP protocol for SSL implementation.
The initial interaction between the browser and the server would start as a standard, unencrypted HTTP connection. The browser would request the server's certificate, which would be sent back as an ordinary HTTP response. The browser would then verify the certificate's validity by checking it against a list of trusted root CAs. This process of certificate validation remains largely unchanged in both universes.
Once the browser confirms the server's identity, it generates a random secret and encrypts it using the server's public key. The encrypted secret is sent to the server, prompting the server to respond with its own random value. The two sides then derive shared encryption keys from the browser's random secret, the server's random value, and a hash of the clear-text information exchanged so far. This ensures that any tampering with the plaintext will result in the generation of different keys, causing the connection to fail.
From this point on, all communication over the connection would be encrypted, starting with the response to the browser's GET request. This encryption mechanism would rely on the shared keys established during the handshake, ensuring secure data transmission.
The main advantage of this alternative approach is that it eliminates the complexity of SNI, which was standardized in 2003 and only became widely adopted in the mid-2010s. In this parallel universe, the Host header would be sufficient for the server to determine which certificate to send, allowing multiple websites to share the same IP address without requiring SNI. Consequently, port 80 would be sufficient for all secure connections, simplifying firewall, proxy, and load balancer configurations.
In this alternative reality, the TLS process would be more transparent and accessible, as the certificate validation, key exchange, and encryption would occur within HTTP, utilizing existing libraries and updates. The only components remaining within the "black box" would be the encryption and authentication of the actual data transmission, which remains a challenging task.
Overall, this hypothetical scenario suggests that Netscape's SSL implementation could have streamlined the process of secure web browsing, making HTTPS more accessible and reducing the complexity associated with SNI and other advanced features.
Rewritten by urgent.news; may contain errors — check the original.
Source: owl.billpg.com