Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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.