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 resulting complete certificate chain can be retrieved by chain
.
Returns true
if the objects in the directory may be deleted, or the directory may be purged.
Returns true
if the STOR command may be applied to the file.
Writes the node to some output.
The node to write
A class implementing <<
. Pass in an Output
object to change the output encoding.
For full_name
, verifies the certificate chain
is valid, the digests
match the signatures signatures
created by the signer depending on the policy
settings.
If key
is given it is used to validate the signing certificate.
Writes data
to the underlying IO
and updates the digests
Raises an exception if a security policy that verifies data is active. Old
format gems cannot be verified as signed.
Sets url
as a source for gems for this dependency API. RubyGems uses the default configured sources if no source was given. If a source is set only that source is used.
This method differs in behavior from Bundler:
The :gemcutter
, # :rubygems
and :rubyforge
sources are not supported as they are deprecated in bundler.
The prepend:
option is not supported. If you wish to order sources then list them in your preferred order.
Writes the lock file alongside the gem dependencies file
The source for this specification
Make sure the trust directory exists. If it does exist, make sure it’s actually a directory. If not, then create it with the appropriate permissions.
Generates a random prime number of bit length bits. If safe is set to true
, generates a safe prime. If add is specified, generates a prime that fulfills condition p % add = rem
.