##### SUMMARY
The `get_certificate` module should support a cryptography backend, so PyOpenSSL can be deprecated / removed eventually.

##### ISSUE TYPE
- Feature Idea

##### COMPONENT NAME
get_certificate

pass
class OpenSSLBadPassphraseError(OpenSSLObjectError):
    pass
def get_fingerprint_of_bytes(source):
    """Generate the fingerprint of the given bytes."""
    fingerprint = {}
    try:
        algorithms = hashlib.algorithms
    except AttributeError:
        try:
            algorithms = hashlib.algorithms_guaranteed
        except AttributeError:
            return None
    for algo in algorithms:
        f = getattr(hashlib, algo)
        h = f(source)
        try:
            
            pubkey_digest = h.hexdigest()
        except TypeError:
            pubkey_digest = h.hexdigest(32)
        fingerprint[algo] = ':'.join(pubkey_digest[i:i + 2] for i in range(0, len(pubkey_digest), 2))
    return fingerprint
def get_fingerprint(path, passphrase=None):