IBM-Security / ibmsecurity

Idempotent functions for IBM Security Appliance REST APIs. Currently covering ISAM and ISDS Appliances.
Apache License 2.0
47 stars 73 forks source link

366 pkcs12 support in pyopenssl is deprecated #382

Closed tombosmansibm closed 1 year ago

tombosmansibm commented 1 year ago

Replace pyOpenSSL with cryptography for idempotency checks in management certificate.

Tested ... [2023-04-25 17:13:32,388] [PID:1122005 TID:140124998584128] [DEBUG] [ibmsecurity.isam.base.management_ssl_certificate] [_check():90] Sorted Current Management Cert: {"issuer": "CN=172.16.73.128,OU=SEL,O=IBM,C=BE", "notafter": "2023-02-25", "notbefore": "2022-02-25", "subject": "CN=172.16.73.128,OU=SEL,O=IBM,C=BE"}

[2023-04-25 17:13:32,388] [PID:1122005 TID:140124998584128] [DEBUG] [ibmsecurity.isam.base.management_ssl_certificate] [_check():93] Sorted Desired Management Cert: {"issuer": "CN=172.16.73.128,OU=SEL,O=IBM,C=BE", "notafter": "2023-02-25", "notbefore": "2022-02-25", "subject": "CN=172.16.73.128,OU=SEL,O=IBM,C=BE"}

{'changed': False, 'data': {}, 'rc': 0, 'status_code': 0, 'warnings': []} ...

tombosmansibm commented 1 year ago

Closes #366