certomancer


Namecertomancer JSON
Version 0.12.3 PyPI version JSON
download
home_pageNone
SummaryPKI testing tool
upload_time2024-11-17 15:41:39
maintainerNone
docs_urlNone
authorNone
requires_pythonNone
licenseMIT
keywords pki testing
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage
            # Certomancer

<p align="center">
  <img width="300" height="300" src="images/certomancer.svg" alt="logo">
</p>

![status](https://github.com/MatthiasValvekens/certomancer/workflows/pytest/badge.svg)
[![PyPI version](https://img.shields.io/pypi/v/certomancer)](https://pypi.org/project/certomancer/)
![Python versions](https://shields.io/pypi/pyversions/certomancer)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)

Quickly construct, mock & deploy PKI test configurations using simple declarative configuration.
Includes CRL, OCSP and time stamping service provisioning.

Requires Python 3.7 or later.

## Quick start

Certomancer is [available on PyPI](https://pypi.org/project/certomancer/). See `example.yml` for an example config file.

```bash
$ pip install 'certomancer[web-api]'
$ certomancer --config example.yml animate
```

This will run the Certomancer Animator WSGI app on your local machine, behind a development web
server. Point your browser to `http://localhost:9000` and take a look around.
For more information, see the [documentation](#Documentation) below.


## Installing the development version

To build and install an (unreleased) development version, you can proceed as follows.

```bash
$ git clone https://github.com/MatthiasValvekens/certomancer
$ cd certomancer
$ python -m build
$ pip install dist/certomancer*.whl
```


## Demo

There's a demo on asciinema.org, demonstrating some of the core features of Certomancer. See link below.

[![asciicast](https://asciinema.org/a/406798.svg)](https://asciinema.org/a/406798)


## FOSDEM '22 talk

I gave a lightning talk on testing & mocking PKI services in the [Testing & Automation devroom](https://fosdem.org/2022/schedule/track/testing_and_automation/) at [FOSDEM 2022](https://fosdem.org/2022/). Certomancer was (of course) featured in the presentation.
If you want to learn more, or watch the recording, have a look at [the talk page](https://fosdem.org/2022/schedule/event/mockery_of_trust/) for further info. Slides are included as well.


## Features

 * Certomancer's core APIs are stateless: the same request should always return the same result.
   This property makes it very useful for automated testing.
   * Note that "the same result" does not necessarily mean "byte-for-byte equal". 
     This is because some signing schemes (like ECDSA) involve random nonces. In addition to that,
     time is also a factor in certain cases (but Certomancer does permit time manipulation).
 * Declarative, YAML-based configuration.
 * Minimal input validation, so you can generate deliberately broken certificates if you need to.
 * ``requests-mock`` integration.
 * Attribute certificate support (`0.7.0` and up)
 * Ultra-lightweight WSGI application: the Certomancer Animator serves CRLs, OCSP responses, 
   timestamps and more. This component requires Werkzeug, and optionally Jinja2 for the index view.
   Other than a web server and WSGI application server, there are no application dependencies.
 * Plugin framework to support arbitrary certificate / CRL extensions and additional services.
   These plugins are compatible with the WSGI and ``requests-mock`` integrations without
   additional configuration.
 * Certomancer is composable: since the Certomancer Animator is a bare-bones WSGI application,
   you can plug it into whatever web application framework you want with minimal overhead.
   Hence, for particularly complicated scenarios where the plugin API or existing integrations aren't
   sufficient, it is very easy to use Certomancer as a library, or wrap it as a component
   of some other WSGI application.
 * With [pyca/cryptography](https://github.com/pyca/cryptography) installed, Certomancer can also
   output PKCS#12 files if your tests require those.
 * With [python-pkcs11](https://github.com/danni/python-pkcs11) installed, Certomancer can write
   keys and certificates to PKCS#11 tokens as well.

## Non-features

Certomancer is a testing tool for developers that write software to interface with public-key
infrastructure. **It is *NOT* intended to be used to manage production PKI deployments.**
Certomancer is very much garbage-in garbage-out, and happily ignores validation & 
security best practices in favour of allowing you to abuse your codebase in the worst possible ways.
Consider yourself warned.


## Documentation

 * [Configuration](docs/config.md)
 * [CLI commands](docs/cli.md)
 * [Plugin API](docs/plugins.md)
 * [Deploying Certomancer](docs/deploy.md)

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "certomancer",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "pki, testing",
    "author": null,
    "author_email": "Matthias Valvekens <dev@mvalvekens.be>",
    "download_url": "https://files.pythonhosted.org/packages/23/04/9bad2cd0f728f9a4b7b90029c3b659d59500867d96875aa7ebd3a3dde821/certomancer-0.12.3.tar.gz",
    "platform": null,
    "description": "# Certomancer\n\n<p align=\"center\">\n  <img width=\"300\" height=\"300\" src=\"images/certomancer.svg\" alt=\"logo\">\n</p>\n\n![status](https://github.com/MatthiasValvekens/certomancer/workflows/pytest/badge.svg)\n[![PyPI version](https://img.shields.io/pypi/v/certomancer)](https://pypi.org/project/certomancer/)\n![Python versions](https://shields.io/pypi/pyversions/certomancer)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n\nQuickly construct, mock & deploy PKI test configurations using simple declarative configuration.\nIncludes CRL, OCSP and time stamping service provisioning.\n\nRequires Python 3.7 or later.\n\n## Quick start\n\nCertomancer is [available on PyPI](https://pypi.org/project/certomancer/). See `example.yml` for an example config file.\n\n```bash\n$ pip install 'certomancer[web-api]'\n$ certomancer --config example.yml animate\n```\n\nThis will run the Certomancer Animator WSGI app on your local machine, behind a development web\nserver. Point your browser to `http://localhost:9000` and take a look around.\nFor more information, see the [documentation](#Documentation) below.\n\n\n## Installing the development version\n\nTo build and install an (unreleased) development version, you can proceed as follows.\n\n```bash\n$ git clone https://github.com/MatthiasValvekens/certomancer\n$ cd certomancer\n$ python -m build\n$ pip install dist/certomancer*.whl\n```\n\n\n## Demo\n\nThere's a demo on asciinema.org, demonstrating some of the core features of Certomancer. See link below.\n\n[![asciicast](https://asciinema.org/a/406798.svg)](https://asciinema.org/a/406798)\n\n\n## FOSDEM '22 talk\n\nI gave a lightning talk on testing & mocking PKI services in the [Testing & Automation devroom](https://fosdem.org/2022/schedule/track/testing_and_automation/) at [FOSDEM 2022](https://fosdem.org/2022/). Certomancer was (of course) featured in the presentation.\nIf you want to learn more, or watch the recording, have a look at [the talk page](https://fosdem.org/2022/schedule/event/mockery_of_trust/) for further info. Slides are included as well.\n\n\n## Features\n\n * Certomancer's core APIs are stateless: the same request should always return the same result.\n   This property makes it very useful for automated testing.\n   * Note that \"the same result\" does not necessarily mean \"byte-for-byte equal\". \n     This is because some signing schemes (like ECDSA) involve random nonces. In addition to that,\n     time is also a factor in certain cases (but Certomancer does permit time manipulation).\n * Declarative, YAML-based configuration.\n * Minimal input validation, so you can generate deliberately broken certificates if you need to.\n * ``requests-mock`` integration.\n * Attribute certificate support (`0.7.0` and up)\n * Ultra-lightweight WSGI application: the Certomancer Animator serves CRLs, OCSP responses, \n   timestamps and more. This component requires Werkzeug, and optionally Jinja2 for the index view.\n   Other than a web server and WSGI application server, there are no application dependencies.\n * Plugin framework to support arbitrary certificate / CRL extensions and additional services.\n   These plugins are compatible with the WSGI and ``requests-mock`` integrations without\n   additional configuration.\n * Certomancer is composable: since the Certomancer Animator is a bare-bones WSGI application,\n   you can plug it into whatever web application framework you want with minimal overhead.\n   Hence, for particularly complicated scenarios where the plugin API or existing integrations aren't\n   sufficient, it is very easy to use Certomancer as a library, or wrap it as a component\n   of some other WSGI application.\n * With [pyca/cryptography](https://github.com/pyca/cryptography) installed, Certomancer can also\n   output PKCS#12 files if your tests require those.\n * With [python-pkcs11](https://github.com/danni/python-pkcs11) installed, Certomancer can write\n   keys and certificates to PKCS#11 tokens as well.\n\n## Non-features\n\nCertomancer is a testing tool for developers that write software to interface with public-key\ninfrastructure. **It is *NOT* intended to be used to manage production PKI deployments.**\nCertomancer is very much garbage-in garbage-out, and happily ignores validation & \nsecurity best practices in favour of allowing you to abuse your codebase in the worst possible ways.\nConsider yourself warned.\n\n\n## Documentation\n\n * [Configuration](docs/config.md)\n * [CLI commands](docs/cli.md)\n * [Plugin API](docs/plugins.md)\n * [Deploying Certomancer](docs/deploy.md)\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "PKI testing tool",
    "version": "0.12.3",
    "project_urls": {
        "Homepage": "https://github.com/MatthiasValvekens/certomancer"
    },
    "split_keywords": [
        "pki",
        " testing"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7c59a0862854ecf574b86fb9a74ec72fd8be93545032f01ccc3542e5a70ad494",
                "md5": "c8ad9be3057ed33f86f1129f04ae2fe0",
                "sha256": "e07250a8879ee8a9bbb8850536e68a230eeb88b3c962ca12df1dd6a8e2c5f5fc"
            },
            "downloads": -1,
            "filename": "certomancer-0.12.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c8ad9be3057ed33f86f1129f04ae2fe0",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 72392,
            "upload_time": "2024-11-17T15:41:37",
            "upload_time_iso_8601": "2024-11-17T15:41:37.896613Z",
            "url": "https://files.pythonhosted.org/packages/7c/59/a0862854ecf574b86fb9a74ec72fd8be93545032f01ccc3542e5a70ad494/certomancer-0.12.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "23049bad2cd0f728f9a4b7b90029c3b659d59500867d96875aa7ebd3a3dde821",
                "md5": "f0984412b43a63a8a488ed713b3ea17f",
                "sha256": "75ccf5eb3fb452a716584c63fdaf5d9f2cd02352e79fd868ab71ba4fa4ca46bc"
            },
            "downloads": -1,
            "filename": "certomancer-0.12.3.tar.gz",
            "has_sig": false,
            "md5_digest": "f0984412b43a63a8a488ed713b3ea17f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 74566,
            "upload_time": "2024-11-17T15:41:39",
            "upload_time_iso_8601": "2024-11-17T15:41:39.852233Z",
            "url": "https://files.pythonhosted.org/packages/23/04/9bad2cd0f728f9a4b7b90029c3b659d59500867d96875aa7ebd3a3dde821/certomancer-0.12.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-17 15:41:39",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "MatthiasValvekens",
    "github_project": "certomancer",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": true,
    "lcname": "certomancer"
}
        
Elapsed time: 0.45138s