as you know, the process of finding a prime number and validate it take some time. ( The best result I get 4 years ago is for a 4096bit prime number, take about 15 mins, only tried Euler and Ferma rules, 99%?). Really, if the server does not require the client to have a certificate, there is really no need to ask client generate a keypaire/prime number. As long as the session encrypt key is there.
If you are really interested in this section, you can try to download the source code of openSSL, it's very long, but very useful.
If you are really interested in this section, you can try to download the source code of openSSL, it's very long, but very useful.