Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/devops13242/python-sslgen
python-sslgen is a Python library to generate self-signed root CA certificates, csr, sign certificates.
https://github.com/devops13242/python-sslgen
python ssl-certificates
Last synced: 14 days ago
JSON representation
python-sslgen is a Python library to generate self-signed root CA certificates, csr, sign certificates.
- Host: GitHub
- URL: https://github.com/devops13242/python-sslgen
- Owner: devops13242
- License: apache-2.0
- Created: 2024-01-14T07:21:51.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-15T08:17:53.000Z (about 1 year ago)
- Last Synced: 2024-11-21T19:12:56.367Z (3 months ago)
- Topics: python, ssl-certificates
- Language: Jinja
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# python-sslgen
python-sslgen is a Python library to generate self-signed root CA certificates, csr, sign certificates. The library enables you to manage all ssl certificates configuration in one place and create ssl certificates.
## Usage
```bash
$ sslgen
```file - ssl certificates configuration.
## Example
Example of a configuration file:
`example/ca.yaml`:
```yaml
cert:
- name: root ca
ca: true
bits: 2048
days: 365
countryName: US
stateOrProvinceName: Oregon
localityName: Portland
organizationName: test
organizationalUnitName: test server
commonName: root.devel
emailAddress: [email protected]
certificate: ca/ca.pem
keyFile: ca/cakey.pem- name: server
ca: false
bits: 2048
days: 365
countryName: US
stateOrProvinceName: Oregon
localityName: Portland
organizationName: test
organizationalUnitName: test server
commonName: server.devel
emailAddress: [email protected]
certificate: server.devel/servercert.pem
keyFile: server.devel/serverkey.pem
csrFile: server.devel/servercert.csr
caCertificate: ca/ca.pem
caKeyFile: ca/cakey.pem
subjectAltName:
- name: DNS.1
value: server.devel
- name: DNS.2
value: www.server.devel- name: git
ca: false
bits: 2048
days: 365
countryName: US
stateOrProvinceName: Oregon
localityName: Portland
organizationName: test
organizationalUnitName: test server
commonName: git.devel
emailAddress: [email protected]
certificate: git/gitcert.pem
keyFile: git/gitkey.pem
csrFile: git/gitcert.csr
caCertificate: ca/ca.pem
caKeyFile: ca/cakey.pem
subjectAltName:
- name: DNS.1
value: git.devel
- name: DNS.2
value: www.git.devel
````sslgen example/ca.yaml` creates one ca and two certificates.