A colleage motivated me to add some example data. Attached you will find a small sample program listing the certificates and trying to connect to my machine.
Output of the program:
Text "fake" nowhere to be found :-(
Traceback (most recent call last):
File "list_cas.py", line 88, in <module>
sys.exit(main())
File "list_cas.py", line 83, in main
ssl_sock.connect((MY_SERVER, 443))
File "C:\Program Files (x86)\Python37-32\lib\ssl.py", line 1150, in connect
self._real_connect(addr, False)
File "C:\Program Files (x86)\Python37-32\lib\ssl.py", line 1141, in _real_connect
self.do_handshake()
File "C:\Program Files (x86)\Python37-32\lib\ssl.py", line 1117, in do_handshake
self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056) |