##### 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

#
#
from distutils.version import LooseVersion
try:
    import OpenSSL
    from OpenSSL import crypto
except ImportError:
    
    
    pass
try:
    import cryptography
    from cryptography import x509
    from cryptography.hazmat.backends import default_backend as cryptography_backend
    from cryptography.hazmat.primitives.serialization import load_pem_private_key
    from cryptography.hazmat.primitives import hashes
    import ipaddress
    
    
    
    
    
    
    
    if LooseVersion(cryptography.__version__) < LooseVersion('2.1'):
        
        
        
        
        def simple_hash(self):