Returns the timeout value set for the session, in seconds from the established time.
Sets how long until the session expires in seconds.
Checks that cert signature is made with PRIVversion of this PUBLIC ‘key’
Sets the store’s purpose to purpose
. If specified, the verifications on the store will check every untrusted certificate’s extensions are consistent with the purpose. The purpose is specified by constants:
X509::PURPOSE_SSL_CLIENT
X509::PURPOSE_SSL_SERVER
X509::PURPOSE_NS_SSL_SERVER
X509::PURPOSE_SMIME_SIGN
X509::PURPOSE_SMIME_ENCRYPT
X509::PURPOSE_CRL_SIGN
X509::PURPOSE_ANY
X509::PURPOSE_OCSP_HELPER
X509::PURPOSE_TIMESTAMP_SIGN
Sets the time to be used in verifications.
Performs a certificate verification on the OpenSSL::X509::Certificate
cert
.
chain
can be an array of OpenSSL::X509::Certificate
that is used to construct the certificate chain.
If a block is given, it overrides the callback set by verify_callback=
.
After finishing the verification, the error information can be retrieved by error
, error_string
, and the resuting complete certificate chain can be retrieved by chain
.
Update and close the session’s FileStore
file.
Update and close the session’s PStore
file.