Metadata-Version: 2.1
Name: dfn-pki-client
Version: 0.1.2
Summary: Python module for the DFN-PKI soap API
Home-page: https://github.com/ikreb7/DFN-PKI-Client
License: GPL-3.0-or-later
Author: Robert Grätz
Requires-Python: >=3.6,<4.0
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Requires-Dist: click (>=7.1.2,<8.0.0)
Requires-Dist: cryptography (>=3.4.5,<4.0.0)
Requires-Dist: pyOpenSSL (>=20.0.1,<21.0.0)
Requires-Dist: suds-community (>=0.8.4,<0.9.0)
Requires-Dist: urllib3 (>=1.26.3,<2.0.0)
Project-URL: Documentation, https://github.com/ikreb7/DFN-PKI-Client
Project-URL: Repository, https://github.com/ikreb7/DFN-PKI-Client
Description-Content-Type: text/markdown

# DFN-PKI-Client

## Example

```
#!/usr/bin/env python

from dfn_pki_client.public_service import PublicServicePKI
from dfn_pki_client.registration_service import RegistrationService
from dfn_pki_client.utils import get_wsdl


def main():

    pki = PublicServicePKI('config.ini')

    ca_info = pki.get_ca_info(42)

    print(ca_info)


if __name__ == '__main__':
    main()

```

## Installation

### Linux (e.g. Ubuntu)

    apt install openssl rustc
    pip3 install cryptography pyopenssl suds-community urllib3

### macOS

    brew install openssl swig rustup
    pip3 install cryptography pyopenssl suds-community urllib3

### Windows (untested)

    pip3 install cryptography pyopenssl suds-community urllib3


## Setup

Create the configuration file ``config.ini``

```
[default]
cert = file_name.p12
password = 0123456789
public_wsdl = https://pki.pca.dfn.de/<ca_name>/cgi-bin/pub/soap?wsdl=1
registration_wsdl = https://ra.pca.dfn.de/<ca_name>/cgi-bin/ra/soap?wsdl=1
domain_wsdl = https://ra.pca.dfn.de/<ca_name>/cgi-bin/ra/soap/DFNCERT/Domains?wsdl=1'
```

