验证ldap服务器证书并获取证书(如果它是自签名的)

时间:2019-06-19 19:17:21

标签: python-3.x ssl ssl-certificate ldap3

我有一个用例,需要验证ldap服务器的证书,如果证书是自签名的,则需要获取证书并对其进行解析,并显示如下:

    ``` Certificate: SOME_CERTIFICATE, "properties": {
        "commonName": "abcd",
        "validSince": "1428078966000",
        "serial": "15202675968201267202",
        "issuerName": "CA",
        "fingerprint": "5D:0E:5F:EE:FF:8F:5B:81:27:D1:60:D3:E2:BC:A7:A3:1C:44:16:EA",
        "validTo": "1743172152000"
    }

0 个答案:

没有答案