'Initiates the class for handling certificates. Enables the certificates
to either be a single certificate as base functionality or makes it
possible to generate a new certificate for each call to the function.
:param security_context:
:param cert_file:
:param cert_type:
:param key_file:
:param key_type:
:param generate_cert_info:
:param cert_handler_extra_class:
:param tmp_cert_file:
:param tmp_key_file:
:param verify_cert:'

def __init__(self, security_context, cert_file=None, cert_type='pem', key_file=None, key_type='pem', generate_cert_info=None, cert_handler_extra_class=None, tmp_cert_file=None, tmp_key_file=None, verify_cert=False):

    self._verify_cert = False
    self._generate_cert = False
    self._last_cert_verified = None
    if ((cert_type == 'pem') and (key_type == 'pem')):
        self._verify_cert = (verify_cert is True)
        self._security_context = security_context
        self._osw = OpenSSLWrapper()
        if (key_file and os.path.isfile(key_file)):
            self._key_str = self._osw.read_str_from_file(key_file, key_type)
        else:
            self._key_str = ''
        if (cert_file and os.path.isfile(cert_file)):
            self._cert_str = self._osw.read_str_from_file(cert_file, cert_type)
        else:
            self._cert_str = ''
        self._tmp_cert_str = self._cert_str
        self._tmp_key_str = self._key_str
        self._tmp_cert_file = tmp_cert_file
        self._tmp_key_file = tmp_key_file
        self._cert_info = None
        self._generate_cert_func_active = False
        if ((generate_cert_info is not None) and (len(self._cert_str) > 0) and (len(self._key_str) > 0) and (tmp_key_file is not None) and (tmp_cert_file is not None)):
            self._generate_cert = True
            self._cert_info = generate_cert_info
            self._cert_handler_extra_class = cert_handler_extra_class
