tls12

package
v0.0.0-...-eb2fa4d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 2, 2024 License: MIT Imports: 7 Imported by: 0

README

tls12

Partially implemented TLS 1.2.

Implement a part of the handshake to get information about the server.

Relevant RFC: RFC 5246

Errors silenced

readServerResponse()
  • Timeout while reading response.
  • Some server send RST (TCP Reset) inmediately after Alert(Handshake Failure) at the initial handshake. This causing a connection reset by peer error. But if the response is exactly 7 byte, the handshake was OK, but SSLv3 is not supported.
getSupportedCiphers()
  • Some server respond an RST without Alert(Handshake Failure) when checking only one cipher. This means that the cipher is not supported.

Documentation

Index

Constants

View Source
const (
	VER_MAJOR uint8 = 0x03
	VER_MINOR uint8 = 0x03
)

Variables

This section is empty.

Functions

func Probe

func Probe(network, ip, port string, timeout time.Duration, servername string) (bool, error)

Types

type TLS12

type TLS12 struct {
	Supported     bool
	Certificates  []x509.Certificate
	DefaultCipher ciphersuite.CipherSuite
	Ciphers       []ciphersuite.CipherSuite
}

func Handshake

func Handshake(network, ip, port string, timeout time.Duration, servername string) (TLS12, error)

func Scan

func Scan(network, ip, port string, timeout time.Duration, servername string) (TLS12, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL