Add a Cert model for storing SSL/TLS certificate information. The model should store the serial number, common_name, and other subject fields. In order to store the data in a normalized fashion, we will also need CertSubject, CertIssuer, and CertSubjectAltName models as well. The Cert module should also have an .import class method which accepts an OpenSSL::X509::Certificate object.
Add a
Cert
model for storing SSL/TLS certificate information. The model should store theserial
number,common_name
, and othersubject
fields. In order to store the data in a normalized fashion, we will also needCertSubject
,CertIssuer
, andCertSubjectAltName
models as well. TheCert
module should also have an.import
class method which accepts anOpenSSL::X509::Certificate
object.