Skip to main content

A simple Django application that provides a RESTFul Direct certificate validation API.

Project description

django-direct is a simple Django application that provides a RESTFul API to validate and fetch Direct x509 certificate via LDAP and DNS.

Detailed documentation for using the API is in the “docs” directory. Installation instructions are below.

Quick start

  1. Pip install django-direct:

    pip install django-direct
  2. Add “direct” to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = (
        ...
        'direct',
    )
  3. Include the direct URLconf in your project urls.py like this:

    url(r'^direct/', include('direct.urls')),
  4. There are no models in this application so there is no migration step.

5. Use the APIs. Visit http://127.0.0.1:8000/direct/validate/[endpoint] to get a JSON validation report. Visit http://127.0.0.1:8000/direct/get-certificate/[endpoint].pem to get a PEM certificate. Visit http://127.0.0.1:8000/direct/get-certificate/[endpoint].txt to get the response as text repsonse. See docs folder for more information.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-direct-0.7.tar.gz (4.7 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page