A package for generating unsigned certificates with issuer and subject information.
Project description
unsigned-gen
A robust unsigned certificate generation library for Python 3.8+.
This library generates unsigned certificate data for various use cases.
Key Features
- Generates unsigned certificate data.
- Supports various issuer and subject configurations.
- Provides a flexible API for customization.
Installation
This package is available on PyPI. You can install it using pip:
pip install unsigned-gen
(You might need to use pip3 depending on your local environment.)
Quick Start
If you're generating an unsigned certificate, you might do this:
from unsigned_gen import UnsignedCertGenerator, Issuer, Subject
issuer = Issuer(
name="Test Issuer",
website="https://issuer.example.com",
email="issuer@example.com",
did="did:example:123",
profile_link="https://issuer.example.com/profile",
revocation_list="https://issuer.example.com/revocation",
crypto_address="123abc"
)
subject = Subject(
title="Test Certificate",
did="did:example:456",
profile_link="https://subject.example.com/profile"
)
generator = UnsignedCertGenerator()
cert = generator.generate_unsigned_cert_data(
issuer,
subject,
'{"records": []}',
"path/to/issuer_image.png",
"path/to/subject_image.png",
{"field1": "value1"},
"TestApp",
{"recipient1": "value1"}
)
print(cert)
Usage
Overview
The module provides a class UnsignedCertGenerator which takes issuer and subject details and generates unsigned certificate data.
Detailed Examples
Provide detailed examples of how to use your package. Include code snippets and explanations.
from unsigned_gen import UnsignedCertGenerator, Issuer, Subject
# Example 1
issuer = Issuer(
name="Test Issuer",
website="https://issuer.example.com",
email="issuer@example.com",
did="did:example:123",
profile_link="https://issuer.example.com/profile",
revocation_list="https://issuer.example.com/revocation",
crypto_address="123abc"
)
subject = Subject(
title="Test Certificate",
did="did:example:456",
profile_link="https://subject.example.com/profile"
)
generator = UnsignedCertGenerator()
cert = generator.generate_unsigned_cert_data(
issuer,
subject,
'{"records": []}',
"path/to/issuer_image.png",
"path/to/subject_image.png",
{"field1": "value1"},
"TestApp",
{"recipient1": "value1"}
)
print(cert)
Options
Describe any options or configurations that can be used with your package.
Option 1
Description of option 1.
Option 2
Description of option 2.
Testing
Explain how to run tests for your package.
pip install -r test_requirements.txt
make test
License
Provide information about the license under which your package is distributed.
Contributing
Explain how others can contribute to your project. Include guidelines for submitting issues and pull requests.
Help
Provide information on where users can get help with your package.
Acknowledgements
Acknowledge any contributors or libraries that your project depends on.
Contact
Provide contact information for users who have questions or need support.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file unsignedgen-1.0.0.tar.gz.
File metadata
- Download URL: unsignedgen-1.0.0.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
45e1db0a2dd3de849387499cda3e696ca96706bc2e01c1aff5c0dc1f9ffa8870
|
|
| MD5 |
2b11f7590bcb30f23b7a137e48debc1e
|
|
| BLAKE2b-256 |
6f91052c690435f7eb2e615aa620d83eb6483f2551fab8d0349c45535b486b88
|
File details
Details for the file unsignedgen-1.0.0-py3-none-any.whl.
File metadata
- Download URL: unsignedgen-1.0.0-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
516ece300f5e0327ea71d184158d9ef0ea79667ecd0b28030ef32414c79ca1fe
|
|
| MD5 |
f5df77b81bd3a14b25639c891e0e6427
|
|
| BLAKE2b-256 |
54ac247965368c2a09125f0d8503a4252fc6b579aecddc42ffe6dfba5f75dd69
|