Creates a self-signed certificate with an issuer and subject from email
, a subject alternative name of email
and the given extensions
for the key
.
Returns the result of the peer certificates verification. See verify(1) for error values and descriptions.
If no peer certificate was presented X509_V_OK is returned.
Convert klassname
to a Class
Extracts the certificate chain from the spec
and calls verify
to ensure the signatures and certificate chain is valid according to the policy..
@return [Array<Array<Object>>] The different requirement
trees that led to every requirement for the current spec.
Returns debugging information about this node as a string.
Returns the SSLSession object currently used, or nil if the session is not established.
Sends “close notify” to the peer and tries to shut down the SSL
connection gracefully.
A description of the current connection state. This is for diagnostic purposes only.
Sets the Session
to be used when the connection is established.
Sets the server hostname used for SNI. This needs to be set before SSLSocket#connect
.
See TCPServer#listen
for details.
Returns the status of the response.
Returns an Array
of statuses for this response. Each status contains a CertificateId
, the status (0 for good, 1 for revoked, 2 for unknown), the reason for the status, the revocation time, the time of this update, the time for the next update and a list of OpenSSL::X509::Extension
.
This should be superseded by BasicResponse#responses
and find_response
that return SingleResponse
.
Returns a string describing the PKey
object.
Returns one of GRANTED
, GRANTED_WITH_MODS
, REJECTION
, WAITING
, REVOCATION_WARNING
or REVOCATION_NOTIFICATION
. A timestamp token has been created only in case status
is equal to GRANTED
or GRANTED_WITH_MODS
.
If the timestamp token is valid then this field contains the same nonce that was passed to the timestamp server in the initial Request
.
Sets the nonce (number used once) that the server shall include in its response. If the nonce is set, the server must return the same nonce value in a valid Response
.
Returns the nonce (number used once) that the server shall include in its response.