def load_ssl_data(self, cert_file, key_file):
<EOL>if os.path.isfile(os.path.expanduser(cert_file)):<EOL><INDENT>with open(os.path.expanduser(cert_file)) as f:<EOL><INDENT>self.ssl_cert = f.read() <EOL><DEDENT><DEDENT>if os.path.isfile(os.path.expanduser(key_file)):<EOL><INDENT>with open(os.path.expanduser(key_file)) as f:<EOL><INDENT>self.ssl_key = f.read()<EOL><DEDENT><DEDENT>
A convenience method that loads a cert and a key from files and sets them
on this object.  This can make enabling ssl easier (instead of you needing
to load the files yourself).

This does *not* change protocol/port for you, or save anything.  Once this
is called, you must still call `save()` on this object for the changes to
take effect.

:param cert_file: A path to the file containing the public certificate
:type cert_file: str
:param key_file: A path to the file containing the unpassphrased private key
:type key_file: str