Class: OpenSSL::X509::StoreContext
Relationships & Source Files | |
Inherits: | Object |
Defined in: | ext/openssl/ossl_x509store.c, ext/openssl/lib/openssl/x509.rb |
Overview
A StoreContext is used while validating a single certificate and holds the status involved.
Class Method Summary
- .new(store, cert = nil, chain = nil) constructor
Instance Attribute Summary
- #error ⇒ Integer rw
- #error=(error_code) rw
-
#flags=(flags)
writeonly
Sets the verification flags to the context.
-
#purpose=(purpose)
writeonly
Sets the purpose of the context.
-
#time=(time)
writeonly
Sets the time used in the verification.
- #trust=(trust) writeonly
Instance Method Summary
- #chain ⇒ Array of X509::Certificate
- #cleanup
- #current_cert ⇒ X509::Certificate
- #current_crl ⇒ X509::CRL
- #error_depth ⇒ Integer
-
#error_string ⇒ String
Returns the error string corresponding to the error code retrieved by #error.
- #verify ⇒ Boolean
Constructor Details
.new(store, cert = nil, chain = nil)
Instance Attribute Details
#error ⇒ Integer (rw)
#error=(error_code) (rw)
#flags=(flags) (writeonly)
Sets the verification flags to the context. See Store#flags=.
#purpose=(purpose) (writeonly)
Sets the purpose of the context. See Store#purpose=.
#time=(time) (writeonly)
Sets the time used in the verification. If not set, the current time is used.
#trust=(trust) (writeonly)
Instance Method Details
#chain ⇒ Array
of
X509::Certificate
#cleanup
[ GitHub ]# File 'ext/openssl/lib/openssl/x509.rb', line 158
def cleanup warn "(#{caller.first}) OpenSSL::X509::StoreContext#cleanup is deprecated with no replacement" if $VERBOSE end
#current_cert ⇒ X509::Certificate
#current_crl ⇒ X509::CRL
#error_depth ⇒ Integer
#error_string ⇒ String
Returns the error string corresponding to the error code retrieved by #error.