#!/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()
apt install openssl rustc
pip3 install cryptography pyopenssl suds-community urllib3
brew install openssl swig rustup
pip3 install cryptography pyopenssl suds-community urllib3
pip3 install cryptography pyopenssl suds-community urllib3
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'