def METHOD_NAME(self):
    self.create_db('sql')
    db = nssdb.NSSDatabase(
        'sql:' + self.tmpdir,
        password_file=self.password_file
    )
    reqfile = os.path.join(self.tmpdir, "req.csr")
    generic = {
        'oid': SAN_OID,
        'critical': True,
        'data': SAN_DATA
    }
    db.create_request(
        "CN=testrequest",
        reqfile,
        generic_exts=[generic]
    )
    out = subprocess.check_output(
        ['openssl', 'req', '-text', '-in', reqfile],
        env={}
    )
    self.assertIn(b'X509v3 Subject Alternative Name: critical', out)
    self.assertIn(b'DNS:example.org', out)