How is pre-master-key generated?

according to https"s explanation, the generation of master_key requires random_S,random_C and pre master key.

but I see that there are basically no articles on the Internet to explain how pre master key is generated, basically computing and generating pre master key.

but I didn"t give up.

I have almost searched all kinds of domestic web pages about http, as well as some foreign web pages. Basically, there are two ways to generate it:

  • Random Generator
    has a total of 48 characters. The first two characters are version numbers, and the following characters are generated by a trial random character generator.
  • RSA,DH algorithm
    the 48 characters are generated using the RSA or DH algorithm.

post a link here:

https://security.stackexchang.

The two answers in this link correspond to the two scenarios I mentioned above.

I went on to look at a web page https://tools.ietf.org/html/r., which tends to be the first to answer the explanation of pre master key.

and I personally think that the DH algorithm is suitable for secret key exchange, so the DH algorithm and the RSA algorithm are actually used to encrypt the pre master key and then transmit it to the server.

but I still want some stronger evidence to support my guess. Please help me.

Oct.28,2021
Menu