Part of twisted.internet._sslverify View Source View In Hierarchy
Known subclasses: twisted.internet.ssl.KeyPair
PublicKeyis a representation of the public part of a key pair.
You can't do a whole lot with it aside from comparing it to other
|Note||If constructing a |
|Instance Variable||original||The original private key.|
|Method||keyHash||Compute a hash of the underlying PKey object.|
|Parameters||osslpkey||The underlying pyOpenSSL key object. (type: |
The purpose of this method is to allow you to determine if two certificates share the same public key; it is not really useful for anything else.
In versions of Twisted prior to 14.1,
keyHash used a
technique involving certificate requests for computing the hash that was
not stable in the face of changes to the underlying OpenSSL library.
The technique currently being used - using Netscape SPKI APIs in OpenSSL - is still somewhat dubious, but due to limitations in both pyOpenSSL and OpenSSL APIs, it is not currently possible to compute a reliable hash of the public key in isolation (i.e. not paired with a specific certificate).
|Returns||Return a 32-character hexadecimal string uniquely identifying this public
key, for this version of Twisted. (type: native |