module OpenSSL::X509

Constants

CERTIFICATE_PATTERN

Public Class Methods

load_certificates(path) click to toggle source

An extension to load an array of certificates from a file at the given path.

# File lib/falcon/extensions/openssl.rb, line 29
def self.load_certificates(path)
        File.read(path).scan(CERTIFICATE_PATTERN).collect do |text|
                Certificate.new(text)
        end
end