Module: R509

Defined in:
lib/r509.rb,
lib/r509/csr.rb,
lib/r509/crl.rb,
lib/r509/cert.rb,
lib/r509/spki.rb,
lib/r509/asn1.rb,
lib/r509/config.rb,
lib/r509/subject.rb,
lib/r509/version.rb,
lib/r509/oid_mapper.rb,
lib/r509/exceptions.rb,
lib/r509/io_helpers.rb,
lib/r509/private_key.rb,
lib/r509/message_digest.rb,
lib/r509/cert/extensions.rb

Overview

A module for building an easy to use CA. Includes CSR, Certificate, and CRL support.

Defined Under Namespace

Modules: ASN1, CRL, CertificateAuthority, Config, IOHelpers, OCSP, OIDMapper, Validity Classes: CSR, Cert, MessageDigest, NameSanitizer, PrivateKey, R509Error, SPKI, Subject

Constant Summary

VERSION =

The version of the r509 gem

"0.9.1"

Class Method Summary (collapse)

Class Method Details

+ (Boolean) ec_supported?

Returns:

  • (Boolean)


27
28
29
# File 'lib/r509.rb', line 27

def self.ec_supported?
  (not defined?(OpenSSL::PKey::EC::UNSUPPORTED))
end

print version information to console



20
21
22
23
24
25
# File 'lib/r509.rb', line 20

def self.print_debug
  puts "r509 v#{R509::VERSION}"
  puts OpenSSL::OPENSSL_VERSION
  puts "Ruby #{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}"
  puts "Elliptic curve support: #{self.ec_supported?}"
end