Git Product home page Git Product logo

crt.sh's Introduction

Hi there ๐Ÿ‘‹

โ˜๏ธ๐Ÿค– Engineering Manager and craftsman in the field of information technology ๐Ÿš€โ˜•๏ธ - My personal blog: https://paulsec.github.io/

My Stats

Connect with me

Linkedin: paul-amar

crt.sh's People

Contributors

malvidin avatar paulsec avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

crt.sh's Issues

Domain JSON object off?

[...{"crtsh_id": "114422", "pem_url": "https://crt.sh/?d=114422", "logged_at": "2013-03-26", "not_before": "2011-07-08", "domain": "2014-07-07", "issuer": "*.uber.com"}...]

Seems its not just returning a date in the domain field, is this API side?

Enhancement: Connect with PostgreSQL

A lot more functionality can be included by using a connection to the crt.sh database with PostgreSQL. Only some filters are exposed through the web interface.

For example, this query:
https://crt.sh/?q=%.github.com&showSQL=Y&exclude=expired
Can be performed with this PostgreSQL command:
psql -h crt.sh -p 5432 -U guest certwatch

certwatch=> SELECT ci.ISSUER_CA_ID,
        ca.NAME ISSUER_NAME,
        ci.NAME_VALUE NAME_VALUE,
        min(c.ID) MIN_CERT_ID,
        min(ctle.ENTRY_TIMESTAMP) MIN_ENTRY_TIMESTAMP,
        x509_notBefore(c.CERTIFICATE) NOT_BEFORE,
        x509_notAfter(c.CERTIFICATE) NOT_AFTER
    FROM ca,
        ct_log_entry ctle,
        certificate_identity ci,
        certificate c
    WHERE ci.ISSUER_CA_ID = ca.ID
        AND c.ID = ctle.CERTIFICATE_ID
        AND reverse(lower(ci.NAME_VALUE)) LIKE reverse(lower('%.github.com'))
        AND ci.CERTIFICATE_ID = c.ID
        AND x509_notAfter(c.CERTIFICATE) > statement_timestamp()
    GROUP BY c.ID, ci.ISSUER_CA_ID, ISSUER_NAME, NAME_VALUE
    ORDER BY MIN_ENTRY_TIMESTAMP DESC, NAME_VALUE, ISSUER_NAME;

I have not yet had success executing this command with psycopg2.

psycopg2.DatabaseError: long transactions not allowed
SSL connection has been closed unexpectedly

Create a new release and PyPI package

The project could benefit of a new release tag and PyPI package.

The crtsh.crtshAPI.search function can currently take the expired argument which is not in the latest 0.2.0 version.

Adding a new version and package release would allow packages which depend on this project to download it directly from PyPI and use these new features by including it directly in a package's setup.py and requirements.txt.

Host it on PIP

You should consider hosting this on PIP so it's easier for users to fetch.

PS: crt.sh also expose intentionally their postgreSQL DB if you give the address a quick port scan. Don't know if it's easier than scraping the JSON.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.