ezcerts 1.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ezcerts-1.0.0/LICENSE +21 -0
- ezcerts-1.0.0/PKG-INFO +63 -0
- ezcerts-1.0.0/README.md +32 -0
- ezcerts-1.0.0/pyproject.toml +56 -0
- ezcerts-1.0.0/pyproject.toml.orig +47 -0
- ezcerts-1.0.0/src/ezcerts/__init__.py +16 -0
- ezcerts-1.0.0/src/ezcerts/_inventory.py +466 -0
- ezcerts-1.0.0/src/ezcerts/_lock.py +104 -0
- ezcerts-1.0.0/src/ezcerts/_x509.py +477 -0
- ezcerts-1.0.0/src/ezcerts/ca.py +1446 -0
- ezcerts-1.0.0/src/ezcerts/cli.py +782 -0
- ezcerts-1.0.0/src/ezcerts/deploy.py +705 -0
- ezcerts-1.0.0/src/ezcerts/errors.py +64 -0
- ezcerts-1.0.0/src/ezcerts/py.typed +0 -0
- ezcerts-1.0.0/src/ezcerts/service/__init__.py +8 -0
- ezcerts-1.0.0/src/ezcerts/service/app.py +544 -0
- ezcerts-1.0.0/src/ezcerts/service/core.py +334 -0
- ezcerts-1.0.0/src/ezcerts/service/est.py +139 -0
- ezcerts-1.0.0/src/ezcerts/service/runner.py +331 -0
ezcerts-1.0.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Winux Nomacs
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
ezcerts-1.0.0/PKG-INFO
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: ezcerts
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: A small certificate authority for mutual TLS: certificates, CRLs, a CA service for enrollment and renewal, and nginx/compose/systemd generation.
|
|
5
|
+
Keywords: mtls,x509,certificate-authority,pki,crl,nginx,client-certificates
|
|
6
|
+
Author: Winux Nomacs
|
|
7
|
+
Author-email: Winux Nomacs <WinuxNomacs@users.noreply.github.com>
|
|
8
|
+
License-Expression: MIT
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
Classifier: Development Status :: 4 - Beta
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Classifier: Intended Audience :: System Administrators
|
|
13
|
+
Classifier: Operating System :: OS Independent
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Classifier: Topic :: Security :: Cryptography
|
|
16
|
+
Classifier: Topic :: System :: Systems Administration
|
|
17
|
+
Classifier: Typing :: Typed
|
|
18
|
+
Requires-Dist: click>=8.5.1
|
|
19
|
+
Requires-Dist: cryptography>=50.0.2
|
|
20
|
+
Requires-Dist: ezmtls>=1.0.0
|
|
21
|
+
Requires-Dist: starlette>=1.10.0 ; extra == 'server'
|
|
22
|
+
Requires-Dist: uvicorn>=0.55.0 ; extra == 'server'
|
|
23
|
+
Requires-Python: >=3.12
|
|
24
|
+
Project-URL: Homepage, https://winuxnomacs.github.io/ezmtls/
|
|
25
|
+
Project-URL: Documentation, https://winuxnomacs.github.io/ezmtls/
|
|
26
|
+
Project-URL: Source, https://github.com/WinuxNomacs/ezmtls
|
|
27
|
+
Project-URL: Changelog, https://github.com/WinuxNomacs/ezmtls/blob/main/CHANGELOG.md
|
|
28
|
+
Project-URL: Issues, https://github.com/WinuxNomacs/ezmtls/issues
|
|
29
|
+
Provides-Extra: server
|
|
30
|
+
Description-Content-Type: text/markdown
|
|
31
|
+
|
|
32
|
+
# ezcerts
|
|
33
|
+
|
|
34
|
+
A small certificate authority for mutual TLS, without the PKI homework. Part of the ezmtls family.
|
|
35
|
+
|
|
36
|
+
**Documentation: https://winuxnomacs.github.io/ezmtls/**
|
|
37
|
+
|
|
38
|
+
```
|
|
39
|
+
pip install ezcerts # the CA and its command
|
|
40
|
+
pip install "ezcerts[server]" # with the CA service
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
```
|
|
44
|
+
export EZCERTS_HOME=~/my-ca
|
|
45
|
+
ezcerts init "My Project" # asks for root and CA passphrases (16+ chars)
|
|
46
|
+
ezcerts issue server web --san localhost --san 127.0.0.1
|
|
47
|
+
ezcerts issue client alice
|
|
48
|
+
ezcerts export alice --out alice.pem
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
- **The CA:** a root and an intermediate in one folder, encrypted keys, server, client and admin
|
|
52
|
+
certificates, renewal, revocation and CRLs. From the `ezcerts` command or from Python
|
|
53
|
+
(`ezcerts.CertificateAuthority`).
|
|
54
|
+
- **The CA service** (`ezcerts serve`): CA certificates and CRLs over HTTP, automatic CRL refresh,
|
|
55
|
+
enrollment with one-time tokens, renewal, EST (RFC 7030) for devices and tools that speak it, and a
|
|
56
|
+
loopback-only admin API.
|
|
57
|
+
- **Deployment:** `ezcerts nginx` generates nginx server blocks that require client certificates and pass
|
|
58
|
+
the verified identity to your app, plus a compose project and systemd units.
|
|
59
|
+
|
|
60
|
+
Secure by default: ECDSA P-256, TLS 1.3, strict certificate roles, encrypted CA keys, short lifetimes.
|
|
61
|
+
Clients use [ezmtls](https://pypi.org/project/ezmtls/) to connect with the certificates.
|
|
62
|
+
|
|
63
|
+
Python 3.12 or later, on Linux, macOS and Windows. MIT licence.
|
ezcerts-1.0.0/README.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# ezcerts
|
|
2
|
+
|
|
3
|
+
A small certificate authority for mutual TLS, without the PKI homework. Part of the ezmtls family.
|
|
4
|
+
|
|
5
|
+
**Documentation: https://winuxnomacs.github.io/ezmtls/**
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
pip install ezcerts # the CA and its command
|
|
9
|
+
pip install "ezcerts[server]" # with the CA service
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
```
|
|
13
|
+
export EZCERTS_HOME=~/my-ca
|
|
14
|
+
ezcerts init "My Project" # asks for root and CA passphrases (16+ chars)
|
|
15
|
+
ezcerts issue server web --san localhost --san 127.0.0.1
|
|
16
|
+
ezcerts issue client alice
|
|
17
|
+
ezcerts export alice --out alice.pem
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
- **The CA:** a root and an intermediate in one folder, encrypted keys, server, client and admin
|
|
21
|
+
certificates, renewal, revocation and CRLs. From the `ezcerts` command or from Python
|
|
22
|
+
(`ezcerts.CertificateAuthority`).
|
|
23
|
+
- **The CA service** (`ezcerts serve`): CA certificates and CRLs over HTTP, automatic CRL refresh,
|
|
24
|
+
enrollment with one-time tokens, renewal, EST (RFC 7030) for devices and tools that speak it, and a
|
|
25
|
+
loopback-only admin API.
|
|
26
|
+
- **Deployment:** `ezcerts nginx` generates nginx server blocks that require client certificates and pass
|
|
27
|
+
the verified identity to your app, plus a compose project and systemd units.
|
|
28
|
+
|
|
29
|
+
Secure by default: ECDSA P-256, TLS 1.3, strict certificate roles, encrypted CA keys, short lifetimes.
|
|
30
|
+
Clients use [ezmtls](https://pypi.org/project/ezmtls/) to connect with the certificates.
|
|
31
|
+
|
|
32
|
+
Python 3.12 or later, on Linux, macOS and Windows. MIT licence.
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "ezcerts"
|
|
3
|
+
version = "1.0.0"
|
|
4
|
+
description = "A small certificate authority for mutual TLS: certificates, CRLs, a CA service for enrollment and renewal, and nginx/compose/systemd generation."
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
license = "MIT"
|
|
7
|
+
license-files = ["LICENSE"]
|
|
8
|
+
requires-python = ">=3.12"
|
|
9
|
+
classifiers = [
|
|
10
|
+
"Development Status :: 4 - Beta",
|
|
11
|
+
"Intended Audience :: Developers",
|
|
12
|
+
"Intended Audience :: System Administrators",
|
|
13
|
+
"Operating System :: OS Independent",
|
|
14
|
+
"Programming Language :: Python :: 3",
|
|
15
|
+
"Topic :: Security :: Cryptography",
|
|
16
|
+
"Topic :: System :: Systems Administration",
|
|
17
|
+
"Typing :: Typed",
|
|
18
|
+
]
|
|
19
|
+
keywords = [
|
|
20
|
+
"mtls",
|
|
21
|
+
"x509",
|
|
22
|
+
"certificate-authority",
|
|
23
|
+
"pki",
|
|
24
|
+
"crl",
|
|
25
|
+
"nginx",
|
|
26
|
+
"client-certificates",
|
|
27
|
+
]
|
|
28
|
+
dependencies = [
|
|
29
|
+
"click>=8.5.1",
|
|
30
|
+
"cryptography>=50.0.2",
|
|
31
|
+
"ezmtls>=1.0.0",
|
|
32
|
+
]
|
|
33
|
+
|
|
34
|
+
[[project.authors]]
|
|
35
|
+
name = "Winux Nomacs"
|
|
36
|
+
email = "WinuxNomacs@users.noreply.github.com"
|
|
37
|
+
|
|
38
|
+
[project.urls]
|
|
39
|
+
Homepage = "https://winuxnomacs.github.io/ezmtls/"
|
|
40
|
+
Documentation = "https://winuxnomacs.github.io/ezmtls/"
|
|
41
|
+
Source = "https://github.com/WinuxNomacs/ezmtls"
|
|
42
|
+
Changelog = "https://github.com/WinuxNomacs/ezmtls/blob/main/CHANGELOG.md"
|
|
43
|
+
Issues = "https://github.com/WinuxNomacs/ezmtls/issues"
|
|
44
|
+
|
|
45
|
+
[project.scripts]
|
|
46
|
+
ezcerts = "ezcerts.cli:main"
|
|
47
|
+
|
|
48
|
+
[project.optional-dependencies]
|
|
49
|
+
server = [
|
|
50
|
+
"starlette>=1.10.0",
|
|
51
|
+
"uvicorn>=0.55.0",
|
|
52
|
+
]
|
|
53
|
+
|
|
54
|
+
[build-system]
|
|
55
|
+
requires = ["uv_build==0.12.3"]
|
|
56
|
+
build-backend = "uv_build"
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "ezcerts"
|
|
3
|
+
version = "1.0.0"
|
|
4
|
+
description = "A small certificate authority for mutual TLS: certificates, CRLs, a CA service for enrollment and renewal, and nginx/compose/systemd generation."
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
license = "MIT"
|
|
7
|
+
license-files = ["LICENSE"]
|
|
8
|
+
authors = [
|
|
9
|
+
{ name = "Winux Nomacs", email = "WinuxNomacs@users.noreply.github.com" }
|
|
10
|
+
]
|
|
11
|
+
requires-python = ">=3.12"
|
|
12
|
+
classifiers = [
|
|
13
|
+
"Development Status :: 4 - Beta",
|
|
14
|
+
"Intended Audience :: Developers",
|
|
15
|
+
"Intended Audience :: System Administrators",
|
|
16
|
+
"Operating System :: OS Independent",
|
|
17
|
+
"Programming Language :: Python :: 3",
|
|
18
|
+
"Topic :: Security :: Cryptography",
|
|
19
|
+
"Topic :: System :: Systems Administration",
|
|
20
|
+
"Typing :: Typed",
|
|
21
|
+
]
|
|
22
|
+
keywords = ["mtls", "x509", "certificate-authority", "pki", "crl", "nginx", "client-certificates"]
|
|
23
|
+
dependencies = [
|
|
24
|
+
"click>=8.5.1",
|
|
25
|
+
"cryptography>=50.0.2",
|
|
26
|
+
"ezmtls>=1.0.0",
|
|
27
|
+
]
|
|
28
|
+
|
|
29
|
+
[project.urls]
|
|
30
|
+
Homepage = "https://winuxnomacs.github.io/ezmtls/"
|
|
31
|
+
Documentation = "https://winuxnomacs.github.io/ezmtls/"
|
|
32
|
+
Source = "https://github.com/WinuxNomacs/ezmtls"
|
|
33
|
+
Changelog = "https://github.com/WinuxNomacs/ezmtls/blob/main/CHANGELOG.md"
|
|
34
|
+
Issues = "https://github.com/WinuxNomacs/ezmtls/issues"
|
|
35
|
+
|
|
36
|
+
[project.scripts]
|
|
37
|
+
ezcerts = "ezcerts.cli:main"
|
|
38
|
+
|
|
39
|
+
[project.optional-dependencies]
|
|
40
|
+
server = [
|
|
41
|
+
"starlette>=1.10.0",
|
|
42
|
+
"uvicorn>=0.55.0",
|
|
43
|
+
]
|
|
44
|
+
|
|
45
|
+
[build-system]
|
|
46
|
+
requires = ["uv_build==0.12.3"]
|
|
47
|
+
build-backend = "uv_build"
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"""A small two-tier certificate authority for mutual TLS: certificates, CRLs, the CA service
|
|
2
|
+
(enrollment, renewal, admin API) and nginx/compose/systemd generation. Clients use ezmtls."""
|
|
3
|
+
|
|
4
|
+
from importlib.metadata import version
|
|
5
|
+
|
|
6
|
+
from ezcerts.ca import CertificateAuthority, IssuedCertificate, Profile, RevocationReason
|
|
7
|
+
|
|
8
|
+
__version__ = version("ezcerts")
|
|
9
|
+
|
|
10
|
+
__all__ = [
|
|
11
|
+
"CertificateAuthority",
|
|
12
|
+
"IssuedCertificate",
|
|
13
|
+
"Profile",
|
|
14
|
+
"RevocationReason",
|
|
15
|
+
"__version__",
|
|
16
|
+
]
|