Ejemplo n.º 1
0
 def create_tables(self):
     TLSConfiguration.create_table()
     CertificateConfiguration.create_table()
     CertificateChain.create_table()
     TLSScan.create_table()
Ejemplo n.º 2
0
    def test_insert(self):
       TLSConfiguration.create(protocol_version="0x0301", ciphersuites="0x000065", compression="0x00")

       obj = CertificateConfiguration.create(serial_number = "0x3456", signature_algorithm="SHAwithRSA", common_name="goskope.com", alternative_name="*.goskope.com", valid_from=datetime.datetime.now(),valid_until = datetime.datetime.now(), key_size="2048", issuer="Digicert", sha1_fingerprint="23847293701832947sdvcxz", key_algorithm="RSA")

       CertificateChain.create(cert_chain_id = 1, cert_id = obj)