def _get_pubkey_hash(cert):
 sha_hash = hashlib.sha1(cert.get_pubkey().get_modulus()).hexdigest()
 return _pretty_hex(sha_hash)

def _get_pubkey_hash ( cert ) : sha_hash = hashlib . sha1 ( cert . get_pubkey ( ) . get_modulus ( ) ) . hexdigest ( ) return _pretty_hex ( sha_hash )
returns the sha1 hash of the modulus of a public key in a cert used for generating subject key identifiers .