Documentation ¶
Overview ¶
Package openssl implements a tls grabbing implementation using openssl
Index ¶
- Variables
- func IsAvailable() bool
- func UseOpenSSLBinary(binpath string)
- func Wrap(err1 errorutil.Error, err2 errorutil.Error) errorutil.Error
- type CMDOUT
- type Client
- func (c *Client) ConnectWithOptions(hostname, ip, port string, options clients.ConnectOptions) (*clients.Response, error)
- func (c *Client) EnumerateCiphers(hostname, ip, port string, options clients.ConnectOptions) ([]string, error)
- func (c *Client) SupportedTLSCiphers() ([]string, error)
- func (c *Client) SupportedTLSVersions() ([]string, error)
- type Options
- type Protocols
- type Response
- type Session
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrParse = errorutils.NewWithTag("openssl", "failed to parse openssl response") ErrCertParse = errorutils.NewWithTag("openssl", "failed to parse server certificate") ErrNotImplemented = errorutils.NewWithTag("openssl", "feature not implemented") ErrNotAvailable = errorutils.NewWithTag("openssl", "executable not installed or in PATH") ErrNoSession = errorutils.NewWithTag("openssl", "session not created/found") )
View Source
var ( BinaryPath = "" OPENSSL_CONF = "" IsLibreSSL = false PkgTag = "" // Header or Tag value that will be reflected in all errors (include openssl(libressl) and version) )
View Source
var AllCiphersNames []string = []string{}
AllCipherNames contains all ciphers supported by openssl
View Source
var SupportedTLSVersions = []string{
"tls10",
"tls11",
"tls12",
}
SupportedTLSVersion of OpenSSL Mode
Functions ¶
func UseOpenSSLBinary ¶ added in v1.0.3
func UseOpenSSLBinary(binpath string)
UseOpenSSLBinary From Path
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a TLS grabbing client using crypto/tls
func (*Client) ConnectWithOptions ¶
func (c *Client) ConnectWithOptions(hostname, ip, port string, options clients.ConnectOptions) (*clients.Response, error)
Connect connects to a host and grabs the response data
func (*Client) EnumerateCiphers ¶ added in v1.0.6
func (c *Client) EnumerateCiphers(hostname, ip, port string, options clients.ConnectOptions) ([]string, error)
EnumerateCiphers enumerates all supported ciphers of openssl on target
func (*Client) SupportedTLSCiphers ¶
SupportedTLSVersions is meaningless here but necessary due to the interface system implemented
func (*Client) SupportedTLSVersions ¶
SupportedTLSVersions is meaningless here but necessary due to the interface system implemented
type Options ¶ added in v1.0.3
type Options struct { Address string // host:port address to connect Cipher []string // Cipher to use while connecting ServerName string // Set TLS extension servername in ClientHello (SNI) CertChain bool // Show Certificate Chain Protocol Protocols // protocol to use CAFile string // CA Certificate File SkipCertParse bool // SkipCertParse skips parsing and validating certs }
OpenSSL Command Line Options
Click to show internal directories.
Click to hide internal directories.