Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
class
Mitm::Context
Inherits
Reference
<
Object
Constructors
new
(root
Certificate
:
String
, root
PrivateKey
:
String
, caching :
Caching
)
Source
new
(root_certificate :
String
, root_private_key :
String
, capacity :
Int32
)
Source
Class methods
create_client
(verify_mode =
OpenSSL::SSL::VerifyMode::NONE
) :
OpenSSL::SSL::Context::Client
Source
Instance methods
caching
Source
country
Source
country=
(country :
String
)
Source
create_context_server
(hostname :
String
, modulus_size :
Int32
= 2048) :
OpenSSL::SSL::Context::Server
Source
create_context_server
(request :
HTTP::Request
) :
OpenSSL::SSL::Context::Server
|
Nil
Source
location
Source
location=
(location :
String
)
Source
notAfter
Source
notAfter=
(not
After
:
Int64
)
Source
notBefore
Source
notBefore=
(not
Before
:
Int64
)
Source
rootCertificate
Source
rootPrivateKey
Source