class

MITM::Context

Inherits Reference / Object

Constructors

new(rootCertificate : String = String.new, rootPrivateKey : String = String.new, capacity : Int32 | Nil = 1024)
Source

Class methods

create_client(verify_mode = OpenSSL::SSL::VerifyMode::NONE, &block : Context -> )
Source
create_client(verify_mode = OpenSSL::SSL::VerifyMode::NONE)
Source
from_path(rootCertificate : String, rootPrivateKey : String, &block : Context -> )
Source
from_path(rootCertificate : String, rootPrivateKey : String)
Source

Instance methods

cache
Source
cache=(cache : Cache)
Source
country
Source
country=(country : String)
Source
create_all(request : HTTP::Request, verify_mode = OpenSSL::SSL::VerifyMode::NONE, &block : Context -> )
Source
create_context(hostname : String = self.hostName)
Source
create_context(request : HTTP::Request)
Source
create_context_from_cache(value : Tuple(String, String))
Source
create_root_context
Source
create_server(request : HTTP::Request, &block : Context -> )
Source
create_server(request : HTTP::Request)
Source
hostName
Source
hostName=(hostName : String)
Source
location
Source
location=(location : String)
Source
notAfter
Source
notAfter=(notAfter : Int64)
Source
notBefore
Source
notBefore=(notBefore : Int64)
Source
rootCertificate
Source
rootPrivateKey
Source

Nested types