Message285903
In my experiments with the relatively new class SSLObject from the ssl module I've noticed the following behavior(s) which I think can be described as bugs.
The getpeercert() method raises a ValueError exception "handshake not done" even after the handshake has successfully completed. If, however, I call the do_handshake() method *after* the handshake completes, then getpeercert() correctly runs and returns the peer's certificate. So now let's focus on do_handshake(). This method is basically undocumented, which I thought was ok because what it does should be obvious. It does seem to initiate a handshake if it's the first method call after the SSLObject is created. If called afterward, it doesn't outwardly appear to do anything, but as mentioned previously it does magically make the getpeercert() method start working. |
|
Date |
User |
Action |
Args |
2017-01-20 12:13:47 | Greg Stark | set | recipients:
+ Greg Stark, christian.heimes |
2017-01-20 12:13:47 | Greg Stark | set | messageid: <1484914427.68.0.380715465195.issue29334@psf.upfronthosting.co.za> |
2017-01-20 12:13:47 | Greg Stark | link | issue29334 messages |
2017-01-20 12:13:46 | Greg Stark | create | |
|