def add_extensions
        ef = OpenSSL::X509::ExtensionFactory.new
        ef.subject_certificate = @ca_cert
        ef.issuer_certificate = @ca_cert

        @ca_cert.add_extension ef.create_extension('subjectKeyIdentifier', 'hash')
        @ca_cert.add_extension ef.create_extension('basicConstraints', 'CA:TRUE', true)
        @ca_cert.add_extension ef.create_extension('keyUsage', 'cRLSign,keyCertSign', true)

      end
def add_extensions
        ef = OpenSSL::X509::ExtensionFactory.new
        ef.subject_certificate = @ca_cert
        ef.issuer_certificate = @ca_cert

        @ca_cert.add_extension ef.create_extension('subjectKeyIdentifier', 'hash')
        @ca_cert.add_extension ef.create_extension('basicConstraints', 'CA:TRUE', true)
        @ca_cert.add_extension ef.create_extension('keyUsage', 'cRLSign,keyCertSign', true)

      end
Add Extensions needed