Crypto/tls handshake parameters getting

Hello everybody!
My problem is a parsing TLS handshake procedure.
I use the simple TLS client written with golang.
I need to send custom random (nonrandomized) number in TLS ClientHello and get information:

  • cert chain
  • server random
  • signed client random, server random and DH parameters
    How I can get it with crypto/tls?

P.S.: If you have useful links about it - please, send me

I don’t know the answer to your question - but it sounds like what you want to do is low level and dangerous (to a normal TLS connection), and thus probably not easily accomplished using the standard crypto/tls package.

1 Like

Yeah, this is low (over tcp) level. C code with openssl can do it. What about golang?
Are there any other options to do this without overwriting the crypto/tls library?
And… What about crypto/tls/handshake_client.go ? Can I use it?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.