Parent

OpenSSL::X509::Certificate

Adds support for a few helper methods to X509 certs.

@see gist.github.com/1151454

Public Instance Methods

==( other ) click to toggle source
# File lib/arachni/rpc/em/ssl.rb, line 18
def ==( other )
    other.respond_to?( :to_pem ) && to_pem == other.to_pem
end
root?() click to toggle source
Alias for: top_level?
self_signed?() click to toggle source
Alias for: top_level?
top_level?() click to toggle source

A serial must be unique for each certificate. Self-signed certificates, and thus root CA certificates, have the same `issuer' as `subject'.

# File lib/arachni/rpc/em/ssl.rb, line 24
def top_level?
    serial == serial && issuer.to_s == subject.to_s
end
Also aliased as: root?, self_signed?

[Validate]

Generated with the Darkfish Rdoc Generator 2.